So you want counter-strike weapon mod that adds new weapons in game?
Then you are in a right place.
Presenting you the Counter-Strike Weapon Mod. You can create them though files or plugins. It is very easy, you should have at least view/weapon/world (v/p/w) models for your weapon. CSWM was created using following SDKs:
Weapons should be in 'cswm/weapons' folder (File type not matters)
Setting parameter looks like:
Code:
Name = "AK47 Golden"
Valid Parameters Are:
Code:
Model - Model name
Type - Type (Can be following: Pistol/Shotgun/Rifle/Sniper)
Name - Name of the weapon
DeployAnim - Deploy animation index
DeployTime - Time before player can't shoot after deploying the weapon
ShootAnim - Animation of primary attack
ShootTime/Delay - Time before next attack after shooting
Damage - Damage multiplier (Depends on weapon type)
Recoil - Recoil multiplier (Depends on weapon type)
ReloadAnimation - Reload animation index
ReloadDuration - Time of reload
Clip - Clip of weapon
AmmoID - Ammo index
Ammo - Ammo index by ammo name
Speed - Maxspeed of weapon (Knife has 250.0)
VModel/ViewModel - View model of the weapon
PModel/WeaponModel - Weap model of the weapon
WModel/WorldModel - World model of the weapon
GModel/WeaponList - Weapon list name for HUD
FireSound - Fire sound of the weapon
Attack2 - Attack 2 index and its parameters separated with comma
WBody/WorldModelBody - If your world model has more than 1 submodels then specification can be done by this.
Creating Weapon Through Plugin:
Spoiler
Include file contains descriptions so you should not peek here.
Requirements
↪ MetaMod
↪ AMX MOD X (Recommended 1.8.2 or higher)
ChangeLog
Spoiler
1.7 => 1.7.1
Fixed damage was not set properly
Fixed native 'FindWeaponByName'
Updated include descriptions
Added new weapon forwards
Added custom TakeDamage forward
Fixed log crash
Improved cvar checks
Updated native 'CreateProjectile'
Improved TakeDamage function calls
Custom weapon creation now returns entity index
Added new flags for secondary attacks
Improved weaponlist/hud of weapon
Improved weapon animation detector
Fixed fire sound detect bug
Added new native to precache weapon model sounds via generic channel
Fixed native for retrieving weapon data
Added native 'FindWeaponByModel'
Changed native 'GiveWeaponByName' to 'GiveWeaponByModel'
Fixed 'GetWeaponData' native
Added new flags for weapons
Fixed projectile was not touching players
Added command ('cswm_list') to show current weapon list
How To Use
Way A: Enable 'sv_cheats' and type give <Weapon Model Name>
Way B: Create your weapon menu using This Source Code.