A Mod For The Mod.....
[WHO]Them
You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
<div class="IPBDescription">kharaa get health for biting marines</div> ok folks, here's the lowdown, with my infinite amount of free time today I wrote up this script that will give a fractional amount of health to any kharaa that inflicts bite damage on another player (it'll give health even from friendlyfire).
Now, if anyone really wants to try this out you're free to download the first version, it's still not fully tested but it works perfectly on my linux server ("[WHO]Selects Whats Natural?").
To run this plugin you will need:
Adminmod
LogD
and a new metamod plugin called SpiderMonkey that I've been toying around with for a while.
Included in the zip is a copy of spidermonkey for linux for use with this plugin. Also included is the dll for windows but I'm not entirely sure it works since I havent been able to test if for the last couple builds.
if anyone has some constructive criticism then please feel free to email me .... them@clanwho.com , But I'll probably be gone most of the time until sunday (**obscenity** finals week)
Now, if anyone really wants to try this out you're free to download the first version, it's still not fully tested but it works perfectly on my linux server ("[WHO]Selects Whats Natural?").
To run this plugin you will need:
Adminmod
LogD
and a new metamod plugin called SpiderMonkey that I've been toying around with for a while.
Included in the zip is a copy of spidermonkey for linux for use with this plugin. Also included is the dll for windows but I'm not entirely sure it works since I havent been able to test if for the last couple builds.
if anyone has some constructive criticism then please feel free to email me .... them@clanwho.com , But I'll probably be gone most of the time until sunday (**obscenity** finals week)
Comments
spmo_hudtextplayer <user index> [channel = 1] [time on screen = 999] [x position = -1] [y position = -1] [fade-in time = 0] [fade-out time = 0] [effect number = 2] [red1 = 255] [green1 = 255] [blue1 = 255] [alpha1 = 0] [red2 = 255] [green2 = 255] [blue2 = 255] [alpha2 = 0] <text message in quotes><!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
That will not work in NS, since the HudText message is a little screwed.
Also what if they bite thier team mates? (I dont use logd or AdminMOD and i dont feel like trying it)
spmo_hudtextplayer <user index> [channel = 1] [time on screen = 999] [x position = -1] [y position = -1] [fade-in time = 0] [fade-out time = 0] [effect number = 2] [red1 = 255] [green1 = 255] [blue1 = 255] [alpha1 = 0] [red2 = 255] [green2 = 255] [blue2 = 255] [alpha2 = 0] <text message in quotes><!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
That will not work in NS, since the HudText message is a little screwed.
Also what if they bite thier team mates? (I dont use logd or AdminMOD and i dont feel like trying it)<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
1. I'm aware that the hudtext won't work for ns, spidermonkey is just kind of a plaything not intended for serious use, it just happens to be required for this script...
2. I already mentioned that a skulk/lerk will get health if they bite a teammate, but only if friendlyfire is on, if it's off then it does nothing when u bite a teammate
<!--emo&::skulk::--><img src='http://www.unknownworlds.com/forums/html/emoticons/skulk.gif' border='0' valign='absmiddle' alt='skulk.gif'><!--endemo-->
-Xan
if the attack doesnt show up as "bitegun"(skulk bite) or "bite2gun"(lerk bite) then the script doesnt give out health......
i havent been able to test what happens with gorge babblers since the games on my server hardly ever get to 3 hives but i doubt that shows up as a bitegun
[ADMIN] ERROR: CPlugin:HandleCommand Called when no AMX present for plugin "c:/blahblahblah/plugin_logd-spmo_nsbiteheal.amx".
I installed logd and spidermonkey.
GWB
GWB
GWB<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
GW - i gave feltope the source code for my plugin that gives health when you knife someone in CS< and he is modifying it for NS. it uses logd instead of spidermonkey so it should be a lot easier to use.
It's written to be generic from the start, it doesn't automatically do anything on it's own, but for anything that has access to the server console it adds commands that can be useful. So suddenly other mods such as adminmod can use spidermonkey indirectly without frustrating integration.
It's not like you're calling weird obscure functions here, let's take the specific example of adding health to a player,
when we have spidermonkey installed and want to give 25 health to player 11, the command is short and to the point...
spmo_changehealthplayer 11 25
lets say we want to take away 25 health from player 11
spmo_changehealthplayer 11 -25
lets say we want to set everyones health to 1 (sorta like a golden gun mode)
spmo_sethealthall 1
lets say we want to give a heavy machine gun to everyone in the game
spmo_giveweaponall weapon_heavymachinegun
not exactly rocket science