A Mod For The Mod.....

[WHO]Them[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)

Comments

  • voogruvoogru Naturally Modified (ex. NS programmer) Join Date: 2002-10-31 Member: 1827Members, Retired Developer, NS1 Playtester, Contributor, Constellation
    edited December 2002
    <!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->spmo_hudtextall [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>

    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)
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    <!--QuoteBegin--voogru+Dec 11 2002, 08:12 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (voogru @ Dec 11 2002, 08:12 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--><!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->spmo_hudtextall [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>

    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
  • XanedonXanedon Join Date: 2002-12-11 Member: 10666Members
    I think the idea is that, especially with the skulks, they are taking a bite out of the marines and eating them...thus the health gain. good idea but i don't think it should be with every attack. Gaining health by goring someone with an onos, LOL right!

    <!--emo&::skulk::--><img src='http://www.unknownworlds.com/forums/html/emoticons/skulk.gif' border='0' valign='absmiddle' alt='skulk.gif'><!--endemo-->


    -Xan
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    edited December 2002
    yeah, onos/fade/gorges have no possibility of getting health for attacks, it's only skulks and lerks when they actually do a bite attack, I thought I had made that clear in the first post.....

    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
  • ArkaineArkaine Join Date: 2002-07-12 Member: 914Members
    Sound like a neat little script. I saw a server that had marines regen a Hitpoint or two when reloading at an armory.
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    sooooo, this thing has been out for almost a week, i gotta ask, has anyone actually tried it out of the 9 downloads ?
  • GWBGWB Join Date: 2002-11-15 Member: 8682Members
    edited December 2002
    installed it on my win32 servers, but it gives this error

    [ADMIN] ERROR: CPlugin:HandleCommand Called when no AMX present for plugin "c:/blahblahblah/plugin_logd-spmo_nsbiteheal.amx".

    I installed logd and spidermonkey.

    GWB
  • GWBGWB Join Date: 2002-11-15 Member: 8682Members
    I just went in and bit a few marines, with no health gain. So I guess it doesn't work for me <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html/emoticons/sad.gif' border='0' valign='absmiddle' alt='sad.gif'><!--endemo-->

    GWB
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    well that looks like the adminmod portion of the script didnt get compiled right or the compiled plugin didnt get put in the right place
  • j0ej0e Join Date: 2002-11-01 Member: 2840Banned
    <!--QuoteBegin--GWB+Dec 17 2002, 08:22 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (GWB @ Dec 17 2002, 08:22 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->I just went in and bit a few marines, with no health gain. So I guess it doesn't work for me <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html/emoticons/sad.gif' border='0' valign='absmiddle' alt='sad.gif'><!--endemo-->

    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.
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    even though getting over the hump of the initial installation of spidermonkey might seem daunting, what with the 1 file to copy and adding it to your metamod.ini , it really isn't rocket science 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
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    edited June 2004
    btw, on a separate note, i picked up development of spidermonkey again and have compiled a new windows .dll and linux .so with the newest metamod, and actually tested it on both platforms.
Sign In or Register to comment.