Outerbeast / SC-Half-Life-2-Weapons

Half-Life 2 weapons for Sven Co-op
4 stars 0 forks source link
angelscript angelscript-language custom-entity custom-weapons goldsrc gravity-gun half-life-2 sc2 sven-co-op svencoop svengine weapons

alt text

Half-Life 2 Weapons Pack

Half-Life 2 weapons for Sven Co-op

Author: Outerbeast

Co-author: Garompa

This weapon pack aims to be an imagining of Sven Co-op 2's weapon loadout, and not necessarily a direct one-to-one port of Half-Life 2's loadout. Some new weapons have been added to the roster, while some of the originals have modified or extra features added.

This project is a work-in-progress, bugs and oversights are expected. Future updates may break compatibility with previous versions. Other planned features such as support for weapon customisation of models, sound etc are in the works.

If you find any problems, please post an issue in the project's github repository "Issues" section.

Weapons:

alt text

Planned weapons for a future update: Annabelle (Father Grigori's rifle), Hopper Mine

Download

By using this pack, you agree to the following terms:

- I agree to these terms, gibe da waepons nao [Download](https://github.com/Outerbeast/SC-Half-Life-2-Weapons/archive/refs/heads/main.zip)

Installation

Warning: using this pack along with other installed weapon packs, be it plugins or map scripts, may result in weapon slot conflicts and will cause weapons to be unselectable.

1) Download and extract the files into svencoop_addon, or your own maps files 2) Add map_script hl2_weapons to your map cfg

OR

Add a trigger_script entity to your map with the key `"m_iszScriptFile"` set to `"hl2_weapons"`

OR

If you have a main map script, add an `#include` for this script in your main map script header.

3) You need to register the weapons. Either:

Add the entity `info_register_hl2weapons` to your map

OR

Execute `HL2_WEAPONS::RegisterWeapons()` in MapInit of the main map script:
```
void MapInit()
{
    HL2_WEAPONS::RegisterWeapons();
}
```
If the map doesn't have a map script, simply create one, name it, and stick the above code into that script file, then add `map_script <your_script_name_here>` to four map's CFG file.

A fgd file is included hl2_weapons.fgd to use with a map editor to add weapons and ammunition to your levels.

Credits

Special thanks:

All relevant Half-Life 2 IP used belong to Valve Software. Please do not sue us.