Metamod: Phase Ammo And Phase Medpacks
[WHO]Them
You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
<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
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
Comments
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-->
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).
the counters are reset whenever the round is over
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.
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!
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.
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?
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
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-->
hehehe, I'll prolly have something out later today for that
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.
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
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..
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!
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
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.
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