Do you know HalfLife Deathmatch?
There are Stations to recharge your Health and your Armor.
Now you can have these Station in Counterstrike too!
Place the Stations you want where you want ;)
To place a Station make sure you are an admin and bind a key to "+place_station".
Now press the key and hold it! Then aim at where you want to place the station, release the key then you'll be shown a menu to choose which sort of station you want to place.
With the commands "push_station" and "pull_station" you can pull or push the station in the direction you are looking.
If you have choosen the station which fits your needs you can save it to the config-file which is automaticaly created for each map.
*new* Now you can delete a placed station with the command "del_station". Just bind it to a key an aim at the station you want to remove...the cfg is automaticaly updated.
That's all...
To use these Stations: Just stand near it, aim at it and press your USE-key (standard: E)
The reloading of the Station is triggered as soon as the Station gets empty! (The Value how much Health a station contain per player is configured per cvar)
Admin-Commands:
Quote:
"+place_station" - Place an Health/Armor-Station on the wall in front of you
"push_station" - Move the Health/Armor-Station away of you
"pull_station" - Move the Health/Armor-Station closer to you
"del_station" - Delete a Health/Armor-Station on which you aim
CVARS:
Quote:
HA_maxhealth - How much health is in a HealthStation for everyone [number of HP] (0-100) (Default: 40 HP)
HA_maxplayerhealth - Set the maximum amount of health a player can charge [100 - 255] (Default: 255 HP)
HA_healthpersec - Set the amount of HP a player get per chargecycle [1 - ?] (Default: 4 HP should be 8-12 HP per second)
HA_maxarmor - How much armor is in a ArmorStation for everyone [number of AP] (0-100) (Default: 40 AP)
HA_maxplayerarmor - Set the maximum amount of armor a player can charge [100 - 255] (Default: 255 AP)
HA_armorpersec - Set the amount of AP a player get per chargecycle [1 - ?] (Default: 4 AP should be 8-12 AP per second)
HA_healthreloadtime - How long the player have to wait till he can use the same HealthStation again [number in seconds](Default: 30 sec)
HA_armorreloadtime - How long the player have to wait till he can use the same ArmorStation again [number in seconds] (Default: 30 sec)
HA_gloweffect - Let the HealthStations glow red and the ArmorStations glow blue [0|1] (on|off) (Default: 1)
Changelog:
Quote:
v0.1:
@ initial release
v0.2:
! Fixed a sound bug
+ Added support for newly placed station giving HP/AP
+ Added 4 new CVARS for more customization
v0.3:
- Removed static declaration for global Variables
- Removed "stock" for functions
+ Added a function to delete placed stations
+ Added real armor to the stations (only for counterstrike)
v0.3.1:
! fixed a bug with realarmor (it's for Counterstrike only!)
v0.3.5:
! fixed a bug when you placed a station at the sky/ceiling the server crashed...now it is handled