Quote:
Originally Posted by cravenge
Precache the hidden CS:S Weapons first and make them spawn naturally in campaigns like the other guns.
|
Weapon is Precached by Vscripts script:
This code made weapon worked and weapon take damage (without campaign restart)
Code:
/**
* Precaches the CS:S weapons, making them usable
*
* @authors Rayman1103
*/
function Precache()
{
local szWeaponName =
[
"weapon_rifle_sg552",
"weapon_smg_mp5",
"weapon_sniper_awp",
"weapon_sniper_scout"
]
foreach(szWeaponsEntity in szWeaponName)
{
PrecacheEntityFromTable({classname = szWeaponsEntity})
}
}
But this EjectBrass effect ... (i don't know what is effect)