 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
|
 |
|
 |
|
 |
|
|
|
|
|
|
 |
|
|
|
|
|
|
 |
|
|
|
|
|
|
|
 |
|
|
|
Pistols and Ammo on the ground Tutorial |
|
|
|
|
|
 |
|
|
|
|
|
|
 |
|
|
|
|
|
|
|
 |
|
|
|
|
|
|
|
|
There are two ways of doing this. I will show you both. First decide whether you want your pistols to respawn or not. In my map the pistols respawn every 5 seconds (five seconds after I pick up a pistol another one will appear) This way I don't have to make as many weapons on the ground. Just one of each! Now, You may like the other way better depending on your map. Making it so once the fully loaded pistol gets picked up it doesn't respawn. (it will not come back) If you do it this way just remember to make enough pistols for everyone. |
|
|
|
|
 |
|
|
|
|
|
|
|
|
|
|
|
|
trigger_multiple with render on and off |
|
trigger_once with render off |
|
|
|
|
|
|
|
 |
|
 |
|
|
|
|
|
|
|
|
|
|
You either want trigger multiple or trigger once. Decide if you want one pistol or multiple pistols. |
|
|
|
|
|
 |
|
|
|
 |
|
|
|
|
|
|
|
|
|
 |
|
|
 |
|
|
|
|
|
|
 |
|
|
|
ADDING WEAPONS AND AMMO TO THE GAME_PLAYER_EQUIP |
|
|
|
|
|
when you open the game_player_equip properties the first thing you need to do is click smart edit.
Then click add (to add the weapon) key -- weapon_elite value -- 1
Now click add agian (to add the ammo) key -- ammo_9mm value -- 4 (for 4 clips) |
|
|
|
|
|
weapon_fiveseven.mdl
weapon_p228.mdl
weapon_elite.mdl
weapon_glock18.mdl
weapon_usp.mdl
weapon_deagle.mdl |
|
ammo_57mm full = 2 clips
ammo_357sig full = 4 clips
ammo_9mm full = 4 clips
ammo_9mm full = 4 clips
ammo_45acp full = 9 clips
ammo_50ae full = 5 clips |
|
|
|
|
|
|
|
|
Inside the game_player_equip click on flags and check use only |
|
|
|
 |
|
|
|
Rendering the sprite on and off is how I made the pistols disappear and reappear. (as shown below) |
|
|
|
 |
|
|
|
 |
|
|
|
 |
|
|
|
models/w_fiveseven.mdl
models/w_p228.mdl
models/w_elite.mdl
models/w_glock18.mdl
models/w_usp.mdl
models/w_deagle.mdl |
|
|
|
Name the cycler sprite elite (where it says name) |
|
|
|
|
|