HEV suit emulation
1 Attachment(s)
This plugin emulates the HEV suit from Half-Life.
When ppl connect to the server., it plays a welcome sound that tells them the HEV is online. If the cvar amx_hev_refill is set to anything larger than 0, the welcome sound will also tell users that automatic medical systems are online. The users will get the amount of HP set in the cvar when they got hurt, e.g. by falling down somewhere. If ammunition depleted, the plugin will play a sound for that. Whenever a player gets hurt, the plugin will check for the following: If they fell down somewhere and lost lesss than 30 HP, this is a minor fracture. If they fell down somewhere and lost more than 30 HP, this is a major fracture. If they drown / burn / breathe nerve gas and so on, they will be told to evacutate this certain area. If your HP is less than 26, you get a notice about vital signs being critical. Requirements: Cstrike module Have Fun with it! Greetz MGee |
Nice little part two to your other plugin :) they work nicely together.
|
if you mean the ammunition depleted thingy, this HEV suit actually does that too :p
|
Oh lol thats cool.
|
That sounds awesome. Can someone make it work for other mods like The Specialists?
|
np... I don't know anything about the Specialists, but I need a function to check how much ammo the user has left in backpack, since that is the only cstrike specific function in there...
How does TS handle its weapons? I only need to find out if all ammunition is gone or only the current clip was shot empty. If I can figure that out, changing the script is no problem. Greetz MGee |
Taken from tsfun.inc
Btw, check out this link: http://www.amxmodx.org/funcwiki.php?...=ts_&go=search Code:
http://www.amxmodx.org/funcwiki.php?go=func&id=157 [ EDIT ] Found out functions here Code:
native ts_getuserwpn( index,&clip,&ammo,&mode,&extra ); |
I don't know anything about writing AMXx plugins, but I think I found a function in the tsx.inc that looks like what it needs.
ts_getuserwpn( index,&clip,&ammo,&mode,&extra ); |
I don't have TS so I can't try it, moreover I don't have time for amxx scripting atm... still, this looks like just a function to get the weapon data of how much ammo is left in the clip but not in the backpack...
|
use:
Code:
clip is clip in ammo ammo is total ammo left mode is current firing mode extra is any attachments to the gun |
All times are GMT -4. The time now is 04:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.