Metamod: Phase Ammo And Phase Medpacks

[WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
edited January 2003 in General Server Discussion
<div class="IPBDescription">auto-delivers stuff upon request</div> Here's another little plugin I got done today after a breakthrough in how to detect when a marine requests ammo or health.

What this plugin does is this.....

The marine commander can create ammo packs and medpacks directly on top of a phase gate to add ammo packs and medpacks to the phase equipment supply.
Then......
Whenever a marine uses the right-click menu to request ammo or health, an ammo pack or medpack will be deducted from the phase equipment supply and instantly transported to the requesting marine.

Hopefully this one will finally take some of the micromanaging chaos away from the commander

standard 2 line banner, no source

This has undergone some basic testing but I am more than willing to take bug reports from anyone that finds them at them@clanwho.com
«13

Comments

  • PseudoKnightPseudoKnight Join Date: 2002-06-18 Member: 791Members
    That's when the commander would stop using the feature. It would be highly useful for a normal team. Some people express criticism over such server mods, but I think it's wonderful and this one showed quite some creativity. <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo-->

    GJ, Them. Hope people enjoy it. <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo-->
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    <!--QuoteBegin--PseudoKnight+Jan 18 2003, 04:47 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (PseudoKnight @ Jan 18 2003, 04:47 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->GJ, Them.<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    thanks, I even got some special f/x in there where it actually uses the phasegate teleport effect whenever storing or dropping the ammo/health <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' valign='absmiddle' alt='tounge.gif'><!--endemo-->


    go nanites go!!!!

    and as far as abuse goes, you don't have to use it. Every time someone requests an item it only deploys ammo/health if you've dropped ammo/health directly on a phase gate beforehand.

    You will receive a message stating how many medpacks and ammo packs you have stored when you either drop one in a phase gate or a marine makes a request for one of the two (whether you have any in-stock or not).
  • Max1Max1 Join Date: 2002-11-08 Member: 7730Members
    I'll be trying it out on my server, I'll let you know if I find any bugs
  • VadakillVadakill The Almighty BSO Join Date: 2002-04-02 Member: 373Members, NS1 Playtester
    Who, does the standard 2 minute recycle time on med/ammo packs still take effect with this plugin or does it work like: Commander places 10 medpacks for reserve, when a marine requests a medpack it automatically deducts from a counter and then drops a fresh medpack on the requester.
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    the counter/fresh method

    the counters are reset whenever the round is over
  • VadakillVadakill The Almighty BSO Join Date: 2002-04-02 Member: 373Members, NS1 Playtester
    Sweet, you guys come up with some cool stuff. I can't run it now but I probably will in the future when NS gets a little more "polished".

    On another note you should submit these to Will Day at metamod.org, I'm sure he'd be happy to put up a link to your site if you have a nice section where you can download all of these plugins.
  • MisfireMisfire Join Date: 2002-11-03 Member: 5764Members
    this plugin looks coo
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    yes, yes it does <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' valign='absmiddle' alt='tounge.gif'><!--endemo-->

    but the damndest thing so far is that I can't teach people on my server to use it. I even stocked it up FOR FREE and the comm was still manually dropping packs on people.

    /me keels jem in jer eye!
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    patch/update:

    I noticed that if you spawned like 40 packs in under 15 seconds that the servers would lag even though they should have dissappeared. Upon searching my code I found a little booboo that I was supposed to revise (packs were being teleported across to an unused portion of the level instead of getting actually deleted).

    So this update actually deletes packs that get added to the phase equipment. Should only make a difference if you spawn packs like a madman.
  • BioHazardBioHazard Join Date: 2002-11-07 Member: 7495Members
    love it man <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo--> works great so far no issues! just a request... <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo--> you knew it had to be something eh?

    is there a way and how hard would it be to add a svar to timelimit usage per seconds?
    lets say.

    phase_time 5

    to make it available to a soldier once every 5 seconds?
  • NeroNero Join Date: 2002-12-20 Member: 11236Members
    i will test it <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo-->
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    <!--QuoteBegin--BioHazard+Jan 20 2003, 12:25 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (BioHazard @ Jan 20 2003, 12:25 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->is there a way and how hard would it be to add a svar to timelimit usage per seconds?
    lets say.

    phase_time 5

    to make it available to a soldier once every 5 seconds?<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    I could add this I guess, I just don't much see the point
  • BioHazardBioHazard Join Date: 2002-11-07 Member: 7495Members
    we had an abuser thought it would be funny to sit and pull all the ammo health from the phase.
    he got booted but i want a safeguard against this. plus i do still want a rine to have to think before fighting.
    i tried spamming the button after comm layed out half a ton of packs and didnt loose much health between a fade rocket and the pack falling.. i could stay alive <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo-->
  • Max1Max1 Join Date: 2002-11-08 Member: 7730Members
    I found you do need to be able to set a time limit between packs on my server, people can bind the med request to a key and spam it during a rush, etc
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    spamming actually was the intent of this mod. Self-sufficient spamming of packs to make a "tougher" marine for rushes. it wasn't built for jackasses tho
  • Max1Max1 Join Date: 2002-11-08 Member: 7730Members
    Yeah but it can make marines almost invulnerable if you keep it full of packs, and on a public server protection against idiots is critical. So a variable would be nice. Also, we found a bug where it still drops packs even when all the phase gates are dead
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    yeah.... that's a uhhhh, feature, yeah, it's a feature.

    hehehe, I'll prolly have something out later today for that
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    patch/update:

    now, whenever the marines have no phase gates in play they will lose ALL phase equipment, but maintaining at least one phase gate will safeguard their investment.

    new cvar, "phaseeq_delay" which will let admins specify an amount of time (in floating point seconds) that a marine cannot request more than one piece of equipment within.
  • ZocZoc &lt;?php echo &quot;Hi there&#33;&quot;; ?&gt; Join Date: 2003-01-20 Member: 12517Members, Retired Developer, Constellation, NS2 Playtester
    Wow! That's really fine now <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo-->
  • BioHazardBioHazard Join Date: 2002-11-07 Member: 7495Members
    cool deal <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo--> i like it...
    thanx again for the playfield leveler. <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo-->
    hey! we actually had 9 rine wins today! woohoo normally its maybe 2
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
  • MasterEvilAceMasterEvilAce Join Date: 2002-11-29 Member: 10268Members, Reinforced - Shadow
    As long as people don't abuse it, it sounds alright

    if someone binds a key though.. it seems like since it can drop directly on the marine? (right?) a skulk would have a hard time taking a marine out..
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    that's why those guys have been bugging me for the cvar to add a time buffer, if you want you can make it so that a marine can only ask for something once every 30 seconds (or once per day if you're nuts)
  • Max1Max1 Join Date: 2002-11-08 Member: 7730Members
    Awesome, good work Them!
  • BastardBastard Join Date: 2002-11-14 Member: 8561Members
    Them -

    Awesome work. We're running on the server I play on - really makes a commander's job a little easier. (Except for the bit about having to EXPLAIN it to everyone... <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo--> )

    I would encourage you to add a timelimit, even 2 seconds, to discourage abuse.

    Thanks!
  • SuicideDogSuicideDog Join Date: 2002-11-10 Member: 8104Members
    I don't know if I will be putting this on my server. I know for sure my butt has been saved as an alien more the a few times, because the commander either didn't get to the marine in time or didn't hit the marine with the health pack. I know some comm's spam health packs .. and that's fine.. if the comm feels it's ok to burn the res for 6 health pack for one marine so be it.
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    <!--QuoteBegin--Bastard+Jan 22 2003, 07:24 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Bastard @ Jan 22 2003, 07:24 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->I would encourage you to add a timelimit, even 2 seconds, to discourage abuse.<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    Can you elaborate on that ?
    Because the last time I checked I noted that I had added the timelimit configuration variable, it just so happens that it defaults to zero
  • Max1Max1 Join Date: 2002-11-08 Member: 7730Members
    He did add a timelimit, read the readme file with the latest version. I set the delay on my server to 5 seconds, seems to be fine at that. I usually have to tell people to use it because nobody knows about it.
  • Grimm_SpectorGrimm_Spector Join Date: 2002-11-01 Member: 3309Members, Constellation
    I'd just like to say that I think this modification is one of the worst ideas, because the micromanaging is supposed to be hell for the commander.

    That's how the game was made, with a specific purpose and idea in mind, if you give the marines the ability to have intelligent medpacks that ignore the 5 seconds deletion timer, then it's going to be abused, even with your only use once every 5 second timer, and just wait till someone decides to hack this one.

    Whatever...it won't be on my server.
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    edited January 2003
    <!--QuoteBegin--Grimm Spector+Jan 23 2003, 11:02 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Grimm Spector @ Jan 23 2003, 11:02 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->and just wait till someone decides to hack this one.<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    I honestly don't understand why someone would "hack" this one. The only reason I'm not releasing the source code is because I'm trying to build up my own secret bag of tricks in my attempt at performing "magic tricks" as it were. (you know the phrase... "A magician never lets the audience know how he did the trick.")

    Honestly it would be easier to build this from scratch than decompile mine
Sign In or Register to comment.