Classic weapons for Sven Co-op
-
Download this repo and extract its content inside
Sven Co-op\svencoop_(hd|addon|downloads)\
. -
Register the new weapons in your mapscript:
- In your mapscript header add
#include "ClassicWeapons"
or addmap_script ClassicWeapons
in your map cfg. - Inside your
MapInit()
function addCLASSIC_WEAPONS::Register();
.
- In your mapscript header add
-
To play with the new weapons place them in the map or give it yourself with
give <weapon_name>
command OR consider using Outerbeast's info_itemswap (instructions on how to use there).
-
Weapon names:
- weapon_hlpython
- weapon_ofeagle
- weapon_ofknife
- weapon_ofm249
- weapon_ofpenguin
- weapon_ofshockrifle
- weapon_ofsniperrifle
- weapon_ofsporelauncher
- The max ammo for the M249, ShockRifle and SporeLauncher are the same as those of the Sven Co-op version to avoid overwriting the weapon's default values.
- The damage of the SporeLauncher has to be regulated by the
skill.cfg
because it does generic damage (not poison) otherwise it will be too broken.
-
revolver_laser_sight
: Enables the python laser sight. (default: 0) -
m249_wide_spread
: Sets whether m249 uses wide spread. (default: 0) -
m249_knockback
: Enables m249 knockback on firing. (default: 1) -
shockrifle_fast
: Enables rapid fire and rapid ammo regeneration. (default: 0) -
knife_allow_backstab
: Enables knife backstack (default: 1)
Change its value with as_command
e.g.:
as_command revolver_laser_sight 1
IMPORTANT: To modify the values you must at least have access to admin.
-
Code format based on KernCore's Custom Weapon Projects.
-
All weapons code was ported/based from SamVanheer's Half-Life Unified SDK, Half-Life Updated and Half-Life Op4 Updated.
- Buran, testing and suggestions for project changes.