Raised This Month: $51 Target: $400
 12% 

Health/Armor-Stations | ~ revive the good ol' HL Deathmatch ~


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:   Gameplay        Approver:   VEN (29)
regalis
Veteran Member
Join Date: Jan 2007
Location: F*cking Germany
Old 05-18-2007 , 12:17   Health/Armor-Stations | ~ revive the good ol' HL Deathmatch ~
Reply With Quote #1



Author:
Code:
regalis ([email protected])


Version:
Code:
v0.3.5


Description:
Quote:
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



Credits:

Quote:
stupok69 for his In-Game-Ads where i have took the Station placing
(http://forums.alliedmods.net/showthread.php?p=424583)

Cheap_suit for his help
(http://forums.alliedmods.net/showpos...76&postcount=4)

Simon Logic for his idea with Armour-Absence-Fix Plugin and help on fixing a bug
(http://forums.alliedmods.net/showthread.php?t=55591)

VEN for his fakemeta_util.inc
(http://forums.alliedmods.net/showthread.php?t=28284)

and PM for his xs.inc (no link found)

Alka for the help on fixing the bug with the "placing at the sky/ceiling"



Required modules:

Quote:
fakemeta
Unpack the Models and Sounds in the Folders like in the .zip...
Have Fun!
Views of last version: 126
Attached Files
File Type: zip Health-Armor-Stations.zip (77.2 KB, 4541 views)
File Type: sma Get Plugin or Get Source (HA-Stations.sma - 6283 views - 44.9 KB)
__________________

Last edited by regalis; 06-01-2007 at 16:37. Reason: Uploaded new version 0.3.5 (fixed a bug with placing a station at sky/ceiling)
regalis is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:45.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode