Tremulous Forum

Mods => Mod Releases => Gameplay Changing => Topic started by: amine on February 12, 2008, 10:51:06 am

Title: Amine's Proximity Mines
Post by: amine on February 12, 2008, 10:51:06 am
Description:
This is a small patch I created that modifies the behavior of grenades: it allows them to become proximity mines! When the variable g_proximityMines is 1, the grenades do not bounce and do not blow up after 5 seconds! Instead, they stick to what you throw them at and wait for an enemy to pass by. Once they detect an enemy, they go boom and deal big damage! They do not come cheap either: 800 credits each!

Details:
Once thrown, the proximity mines take 3 seconds to activate. After that, any alien that comes within 1/3 of a turret range will make it explode. This works with the development version as well as the 1.1 release (tested with Lakitu7's latest qvm). You can come and try it out at "Aminorium's Wondrous Emporium". I will enable the proximity grenades for the next couple weeks.

Configuration:
g_proximityMines [0 = regular grenades/1 = proximity mines]

Website:
MG Patch Tracker (http://patches.mercenariesguild.net/index.php?do=details&task_id=135)
http://www.endra.org/projects/ (http://www.endra.org/projects/) (down)
Title: Re: Amine's Proximity Mines
Post by: HamStar on February 12, 2008, 01:58:43 pm
Sounds sexy. Might hop in the server and try it out sometime :D
Title: Re: Amine's Proximity Mines
Post by: KamikOzzy on February 12, 2008, 05:29:52 pm
They pretty much rock.

Some fun with devmap:
(http://i174.photobucket.com/albums/w97/ozzy_oswalt/shot0002.jpg)
(http://i174.photobucket.com/albums/w97/ozzy_oswalt/shot0033.jpg)
Title: Re: Amine's Proximity Mines
Post by: Superpie on February 12, 2008, 05:36:47 pm
small suggestion... shoot a mine with granger spit or goon barb to disable/detonate?
Title: Re: Amine's Proximity Mines
Post by: Paradox on February 12, 2008, 05:46:39 pm
Uber sexy.

Will be included in our uber qvm.

Btw, good to see another developer using buttloads of cvars.
Title: Re: Amine's Proximity Mines
Post by: mooseberry on February 12, 2008, 09:18:59 pm
Awesome! Really fun.  :)

Also, nice pics Ozzie.
Title: Re: Amine's Proximity Mines
Post by: firebladez212 on February 13, 2008, 01:54:57 am
small suggestion... shoot a mine with granger spit or goon barb to disable/detonate?

this should also be activated if you/teamate shoots it, this may help set it off some how
Title: Re: Amine's Proximity Mines
Post by: Lava Croft on February 13, 2008, 02:21:22 am
Those are some funny screenshots! Good work on the patch too.
Title: Re: Amine's Proximity Mines
Post by: das Iro on February 13, 2008, 04:11:26 pm
Nice idea.

but isn't that the ultimate human camper weapon ? :'(

like on atcs some campers place them on the ramp and Tyrants pop away :(
Title: Re: Amine's Proximity Mines
Post by: Despairation on February 13, 2008, 04:28:14 pm
Yeah, but they're 800 creds each so its not like you can put 10 on a ramp at the same time.
Title: Re: Amine's Proximity Mines
Post by: CreatureofHell on February 13, 2008, 05:11:46 pm
10 people can. Even 5 if they at least have 1600 creds each.
Title: Re: Amine's Proximity Mines
Post by: Revan on February 13, 2008, 05:15:07 pm
10 people can. Even 5 if they at least have 1600 creds each.

waste of good credits
Title: Re: Amine's Proximity Mines
Post by: _Equilibrium_ on February 13, 2008, 06:19:27 pm
so the mine will stay there indefinitely until an alien comes near it? how about a human?
Title: Re: Amine's Proximity Mines
Post by: thirdstreettito on February 13, 2008, 09:30:07 pm
That is awesome Amine! I wish I had a server to use a QVM with it in it. Btw, if an Adv Goon snipes the grenade before they get to it can it blowup or disappear?
Title: Re: Amine's Proximity Mines
Post by: _Equilibrium_ on February 13, 2008, 11:08:02 pm
Btw, if an Adv Goon snipes the grenade before they get to it can it blowup or disappear?
as far as i know, grenades don't have hitboxes.
Title: Re: Amine's Proximity Mines
Post by: mooseberry on February 13, 2008, 11:36:08 pm
1. Correct me if I'm wrong, but it looks as if it is only possible to have either a grenade or a mine available on the server, but not both at the same time? (I haven't tried this out yet.)

2. Also, maybe you should change the kill message so that it says 'mine' instead of grenade.
Title: Re: Amine's Proximity Mines
Post by: Plague on February 13, 2008, 11:38:58 pm
1. Correct me if I'm wrong, but it looks as if it is only possible to have either a grenade or a mine available on the server, but not both at the same time? (I haven't tried this out yet.)

2. Also, maybe you should change the kill message so that it says 'mine' instead of grenade.

Both require changes to the cgame module and subsequently a cgame.qvm (client download), something which I believe Amine is trying to avoid so that it doesn't discriminate against a significant portion of the Tremulous community - those who still use the 1.1 official client without client downloads automatically enabled.

Nice work Amine, adds a further strategical element to the game in deciding the best placement for the mine and timing the detonation right.
Title: Re: Amine's Proximity Mines
Post by: techhead on February 14, 2008, 01:30:26 am
Grenades do have bounding boxes, just like flame-thrower flames.
They are there to make sure they bounce right.
Making them detonated via damage would be nice, although the size of the BBox means that only splash damage,  melees, or (extremely) lucky shots can hit them. Melees are pretty much out due to proximity, so the reality is that it would make them chain react, preventing teamwork minefields. The cost also means that they are only really good for draining enemy cash, not making a profit for yourself.
Title: Re: Amine's Proximity Mines
Post by: whitebear on February 14, 2008, 04:55:43 am
Copy pasting your already done code can't be hard right?
I would request that you add additional value 2 so that they turn into real mines (touch to activate on both friend or foe). Also the damage to explode should be there as well.
This way they can be used best on choke points and the damage is max for the victim and possible ass flies.
Title: Re: Amine's Proximity Mines
Post by: thirdstreettito on February 14, 2008, 01:47:36 pm
Whoa, whitebear is alive! Good input everyone I'll see if I can come up with a different model maybe.
Title: Re: Amine's Proximity Mines
Post by: whitebear on February 15, 2008, 05:30:51 am
I think that would also ruin the idea of server side mod.

And yes... I am alive.
(Cebt) used res on me ^^
Title: Re: Amine's Proximity Mines
Post by: thirdstreettito on February 16, 2008, 01:21:13 am
(Cebt) used res on me ^^

Explain for us nonunderstandingers.
Title: Re: Amine's Proximity Mines
Post by: St. Anger on February 16, 2008, 02:22:05 am
(Cebt) used res on me ^^

Explain for us nonunderstandingers.

Resurrection.
Title: Re: Amine's Proximity Mines
Post by: thirdstreettito on February 16, 2008, 03:50:09 am
tyvm
Title: Re: Amine's Proximity Mines
Post by: Lakitu7 on February 16, 2008, 07:04:43 am
This seems like a cool mod. I'd like to play it some day when mod servers might be viable. It shouldn't replace the nade, though I understand why you had to do that temporarily now for testing.
Title: Re: Amine's Proximity Mines
Post by: whitebear on February 16, 2008, 07:19:46 am
Does anyone know if this has any bugs?
Since it's early version I assumed that it wouldn't be very stable.
Does any server run this?
It'll be most likely added to our server when we are sure it's stable. (Yes. You are my dear little guinea pigs) ^^
Title: Re: Amine's Proximity Mines
Post by: thirdstreettito on February 16, 2008, 04:40:02 pm
Amines does.
Title: Re: Amine's Proximity Mines
Post by: amine on February 16, 2008, 06:28:14 pm
Thank you for your comments. As far as it has been tested on my server (and played on extensively), there are only a couple things that one might consider a "bug":

1) The method used to detect a nearby enemy does not check to make sure he is in the line of sight (e.g. blowing it up from the other side of a thin wall.) This can easily be fixed using trap_Trace() or some other quicker function I am not aware of. I think I might make it so a Stage 2 Proximity Mine blows up when it detects a nearby enemy, but a Stage 3 Proximity Mine checks to make sure he is in the line of sight.

2) If you drop a grenade on a human or alien head, and the human or alien moves away before it activates, the grenade will float (similar to Goldeneye 64's Floating Remote Mines). I am not sure how to fix this.

People have been telling me that the grenade is overpowered.. but it does the same damage as a regular grenade. If you pounce directly on the grenade, it will deal full damage but if you just walk near it, it will just hurt you. Also, this gives dretches something to do at Stage 3  ;)

I really like the idea to make it only buildable from the advanced construction kit, but if I do that it will not work without having pre-configured your client to allow downloads, so I think for now I will leave it like this.

I'll upload Lakitu7's QVM (with Proximity Mines) later tonight, I have to go now :(
Title: Re: Amine's Proximity Mines
Post by: Redman on February 17, 2008, 12:09:45 am
Can someone help me with that? I never was patching the SVNs....
Title: Re: Amine's Proximity Mines
Post by: UniqPhoeniX on February 17, 2008, 02:28:14 am
If possible, you could try making it bounce off players so it won't float and give it a 5 sec timer after throw until it starts working, and 1-2 sec timer after detecting enemy. Then it would hit when you walk into it, or allow detonating it by carefully going closer or quickly pouncing past, 1st requires that you know it's there, and also 2nd if well placed. Granger spit should disarm it until the spit texture disappears.
Title: Re: Amine's Proximity Mines
Post by: Risujin on February 21, 2008, 03:15:57 pm
1) The method used to detect a nearby enemy does not check to make sure he is in the line of sight (e.g. blowing it up from the other side of a thin wall.) This can easily be fixed using trap_Trace() or some other quicker function I am not aware of.
There is a G_IsVisible() or something that will do that for you.

2) If you drop a grenade on a human or alien head, and the human or alien moves away before it activates, the grenade will float (similar to Goldeneye 64's Floating Remote Mines). I am not sure how to fix this.
Check the ent->r.contents of whatever you hit with the grenade, if it is CONTENTS_SOLID, stick to it, otherwise fall with gravity or immediately explode.

I really like the idea to make it only buildable from the advanced construction kit, but if I do that it will not work without having pre-configured your client to allow downloads, so I think for now I will leave it like this.
Want to know something funny? Up to revision 451, Tremulous had constructible "float mines (http://svn.icculus.org/tremulous?rev=451&view=rev)". They were ditched a long with the bank. Too much Gloom resemblance for the devs? :)
Title: Re: Amine's Proximity Mines
Post by: crazywhiteboy9x9 on March 03, 2008, 01:20:25 am
how do i complie stuff like thi i been looking every where and found nada so will some 1 send me a guid please
Title: Re: Amine's Proximity Mines
Post by: Paradox on March 03, 2008, 01:24:33 am
Anyone understand the fuckshit in that last post?

If your looking for a qvm with it, the one i compile has it.
http://p-g-qvm.googlecode.com
Title: Re: Amine's Proximity Mines
Post by: crazywhiteboy9x9 on March 03, 2008, 12:39:59 pm
Anyone understand the fuckshit in that last post?

If your looking for a qvm with it, the one i compile has it.
http://p-g-qvm.googlecode.com
sorry for the bad spelling but i cant find out how to patch my qvm with this and i all ready run that p-g-qvm-1.5.0.1 gvm on my server and i wana know how to pat the qvm with proxie mines if u cant help me please?
Title: Re: Amine's Proximity Mines
Post by: Thomsen on March 03, 2008, 03:14:53 pm
set g_proximityMines 1
Title: Re: Amine's Proximity Mines
Post by: + OPTIMUS + on March 03, 2008, 04:31:20 pm
how do i complie stuff like thi i been looking every where and found nada so will some 1 send me a guid please

1rd download crosshaar than crack wid 0.3 zoo outnumber the ASAP so dhe nada would update to set_svfxmod_3.
Title: Re: Amine's Proximity Mines
Post by: crazywhiteboy9x9 on March 03, 2008, 09:38:12 pm
how do i complie stuff like thi i been looking every where and found nada so will some 1 send me a guid please

1rd download crosshaar than crack wid 0.3 zoo outnumber the ASAP so dhe nada would update to set_svfxmod_3.
lol wow do u guys feel that bad...... lol ill type better ok but serious what do i need
Title: Re: Amine's Proximity Mines
Post by: whitebear on March 08, 2008, 03:19:25 pm
yo neez ganja an 1-2-Datta.pk3 zo uu kan 0wn teh spoon. oter wize te smuglers ovär run ya.
Title: Re: Amine's Proximity Mines
Post by: Roanoke on November 29, 2008, 04:38:31 am
Source code please? I know this is a necro, but still.
Title: Re: Amine's Proximity Mines
Post by: Amanieu on November 29, 2008, 05:18:42 am
It's in p-g-qvm
Title: Re: Amine's Proximity Mines
Post by: Syntac on November 29, 2008, 06:09:29 am
It's also available at the MG patch tracker (http://patches.mercenariesguild.net/index.php?do=details&task_id=135).