Originally Posted by
moh
main:
//////////////////////////
level waittill prespawn //
//////////////////////////
level.grenades[max_spawns] = 10 // max concurrent spawns //
level.grenades[spawn_duration] = 15 // how long they stay in seconds //
level.grenades[respawn_delay] = 0 // how long till they come back in seconds // // how many a player can carry //
//*********************************************************************//
level.spot[1] = ( 000 000 000 000 )
level.spot[2] = ( 000 000 000 000 )
level.spot[3] = ( 000 000 000 000 )
level.spot[4] = ( 000 000 000 000 )
level.spot[5] = ( 000 000 000 000 )
//*********************************************************************//
///////////////////////
level waittill spawn //
///////////////////////
thread InitGrenades
end
}
else
{ // try to pick the nade up and increment their nade count if successful //
if (local.grenade)
{
local.trigger.processing = 1
local.grenade triggerable
local.player trigger local.grenade // try to pick it up (won't allow more than max nade amount) //
local.grenade nottriggerable
waitframe // wait a frame so we can check if nade is there or not //
if !(local.grenade)
local.player.nades++ // if nade has gone, player successfully picked it up //
else
local.trigger triggerable // he couldn't pick it up (he has 6 already) //
local.trigger.processing = 0
}
}
end