######################################
# Countdown
# Version 1.1
# Release date: 18:40 03/08/2005
######################################
-----------
Change Log
-----------
* Added new countdown_rounds cvar - To change map
* Added New countdown_light cvar - To glow radio player
* Added new countdown_locate cvar - To announce radio location
* Added more random locations for Stock AA Maps
-----------
Description
-----------
This mod add's a radio to maps. Each team has
to find and keep the radio in their possession for the counter on the
oposite team to countdown. The player who finds the radio has the job of
staying alive, if they die or leave the radio drops to the floor ready
to be found again. Once the countdown hits 0. The oposite team will explode.
This mod will probably be included in the next update of Admin-Pro.
The use of Admin-Pro will bring about many additional advantages and settings.
--------------------
Supported gametypes:
--------------------
The mod should run on all game team types.
------------------
Possible Ocnflicts
------------------
The mod uses the global/DMprecache.scr file. Any mod using this
file may cause a conflict with this mod.
With the Admin-pro version the mod will not use that file.
---------------
Supporting maps
---------------
All the stock AA maps are supported. More radio spawn points and
custom maps can be easily added.
-----
Cvars
-----
countdown
---------
Turns the mod on and off.
0 = off, anything else is on.
countdown_time
--------------
Sets the time for the mod to countdown from
default: 03:00
When changing this cvar. It must remain within 90:00. 5 characters long including ":"
countdown_light
---------------
make the player with the radio glow
0 = off, anything else = on
countdown_rounds
---------------
This allows you to set fraglimit and timelimit 0 and use countdown_rounds ot change the map.
After this limit of rounds has been reached the map will change. 0 - no limit
countdown_locate
----------------
Set default to 15. Each 15 seconds the place of the radio will be announced on supported maps into
the hud. If set 0 the location will not show. The location displays for 3 seconds and then fades out.
----------------------
Setting up your config
----------------------
If you are not going to use normal fraglimit or timelimit to change the map then you need to add
the following to your config only if you are going to use another countdown_rounds setting other
then default, default being 3 rounds.
seta countdown_rounds 5
This will crate the cvar and set countdown rounds to 5. Otherwise it will be 3.
If you do not want to use countdown_rounds then set:
seta countdown_rounds 0
The countdown_rounds will not effect the map change.
Donwload
Here
i think...
player_scan.scr
items/explosive.tik------>animate/radiobomb.tik
main:
while(1)
{
for (local.i = 1;local.i <= $player.size; local.i++ )
{
if($player[local.i].gotbomb != 1 && $player[local.i].dmteam != "spectator")
{
$player[local.i] attachmodel "animate/radiobomb.tik" "Bip01 Pelvis" 0.8 "pelvis_bomb" 0 -1 -1 -1 -1 ( 1.5 -4 10.0 )
$pelvis_bomb[$pelvis_bomb.size].angles = ( 150 200 10 )
$player[local.i].gotbomb = 1
$player playsound plantbomb1
exec HTR/hud.scr::countdown
}
}
wait 1
}
end