AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [Any] Set Start Health (https://forums.alliedmods.net/showthread.php?t=161657)

RedSword 07-09-2011 16:32

[Any] Set Start Health
 
1 Attachment(s)
Set Start Health

v. 1.0.1

Introduction/Features :

I realised recently (due to a request by BeaverKing first post on allied modders rofl) that there is no plugin dedicated to set health when round start / player spawn, so I made one.

The code to set health is based on the one made by MrBlip.

Known bugs :
  • Not any at the moment. Please report any.

CVars :
  • setstarthealthversion: Gives version -_-'
  • ----------
  • starthealth : Is plugin enabled ? 0=No, 1+ =Yes. 2=team 1 only. 3=team 2 only.
  • starthealth_value : Value to change health to. Minimum 1.
  • starthealth_type : Change health : 0 = On round start, 1 = On player spawn (Default).

--------------

Any suggestions/comments on the code or the plugin are welcomed and appreciated.

Changelog :
  • 1.0.0 Initial release. (09-07-2011)
  • 1.0.1 Now can use "starthealth_type 0" with TF2. (09-07-2011)

Todo list :
  • None at the moment.

Credits :
Other notes :
  • Works fully with Counter-Strike : Source.
  • Under TF2, life given over maximum will be given as buffed health.
  • This plugin, as many other SM plugin, creates its own config file.

JoBarfCreepy 07-11-2011 15:42

Re: [Any] Set Start Health
 
Will try this on TF2 right away.

TnTSCS 07-11-2011 16:28

Re: [Any] Set Start Health
 
is there a config file needed? or just add my settings in sourcemod.cfg

starthealth 3 //for CT
starthealth_value 9999 //what's the max?
starthealth_type 1 //useful for DM and GG


...:: TnT Edit ::...
nevermind - it creates a config file :)

BeaverKing 07-14-2011 00:24

Re: [Any] Set Start Health
 
tested this in tf2 just now, works perfectly. thank you very much for whipping this up so quickly, im sure others will appreciate it too :)

RedSword 07-14-2011 16:07

Re: [Any] Set Start Health
 
Quote:

Originally Posted by BeaverKing (Post 1510269)
tested this in tf2 just now, works perfectly. thank you very much for whipping this up so quickly, im sure others will appreciate it too :)

No problem. Thank you for testing and/or using my plugin(s).

cpgrules 07-15-2011 17:12

Re: [Any] Set Start Health
 
can this be used on just 1 player only? I'd like to use this on a bot. Thanks

RedSword 07-15-2011 17:39

Re: [Any] Set Start Health
 
Quote:

Originally Posted by cpgrules (Post 1511434)
can this be used on just 1 player only? I'd like to use this on a bot. Thanks

Have you tryed http://forums.alliedmods.net/showthread.php?p=650481 ?

It might does what you want.

cpgrules 07-15-2011 18:01

Re: [Any] Set Start Health
 
Quote:

Originally Posted by RedSword (Post 1511446)
Have you tryed http://forums.alliedmods.net/showthread.php?p=650481 ?

It might does what you want.

yes I have that one also. The bot gets killed eventually, usually around 1 min or so. I tried a repeat script to try and keep the bot alive, but it just extends his life another min or so. Seems the only way is to change an entire class's health in its ctx file and to keep it next to a locker. This is on an achievement server to get the pyromancer achievement

RedSword 07-15-2011 18:13

Re: [Any] Set Start Health
 
Quote:

Originally Posted by cpgrules (Post 1511463)
yes I have that one also. The bot gets killed eventually, usually around 1 min or so. I tried a repeat script to try and keep the bot alive, but it just extends his life another min or so. Seems the only way is to change an entire class's health in its ctx file and to keep it next to a locker. This is on an achievement server to get the pyromancer achievement

Would it need to be only 1 bot or could it be all bots ?

sinblaster 07-15-2011 19:46

Re: [Any] Set Start Health
 
yeah this [CSS] Hostages Health
is great, I dont think it would be possible to allow only one bot and if so it would be a pretty talented coder that made it so


All times are GMT -4. The time now is 17:32.

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