Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function main_shootable_perk_slot()
- {
- trigs = GetEntArray( "shootale_perk_slot", "targetname" );
- level.shot_perk_slots = 0;
- level.shot_perk_slots_goal = trigs.size;
- foreach( trig in trigs )
- trig thread waittill_shot();
- }
- function waittill_shot()
- {
- self waittill( "trigger", player );
- level.shot_perk_slots++;
- player PlayLocalSound( "meteor_affirm" ); // change to any sound you want to play to the player
- if( level.shot_perk_slots == level.shot_perk_slots_goal )
- reward_all_players();
- }
- function reward_all_players()
- {
- players = GetPlayers();
- foreach( player in players )
- nsz_powerup_empty_bottle::grab_bottle( player );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement