Post: [Script] Proximity Mine
08-05-2013, 06:53 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Hello NGU!
Here is my proximity mine.
It's basically a C4 with a proximity sensor.
You can use it just like a C4 or you can place and forget.
If an enemy gets to close it will detonate on its own killing anyone in its blast radius!!!Cool Troll

    ProximityMine()
{
self endon("death");
self endon("disconnect");
self.curWeapon=self getCurrentWeapon();
self giveWeapon("c4_mp");
self SetWeaponAmmoClip("c4_mp",1);
self switchToWeapon("c4_mp");
proxmine="c4_mp";
self iPrintln("Proximity Mine Equipped");
self waittill("grenade_fire",proxmine);
if(proxmine=="c4_mp")
{
proxmine waittill("activated");
me=self;
wait 1;
self iPrintln("Proximity Mine Activated");
proxmine thread sensor(me);
self switchToWeapon(self.curWeapon);
}
}
sensor(me)
{
while(1)
{
for(k=0;k<level.players.size;k++)
{
player=level.players[k];
if(distance(self.origin,player.origin)<160)
{
if(level.teamBased)
{
if(player.team==get_enemy_team(me.team))
{
self playsound("mp_ingame_summary");
wait .5;
self detonate();
}
}
else
{
if(me==player)
{
return 0;
}
else
{
self playsound("mp_ingame_summary");
wait .5;
self detonate();
}
}
}
}
wait .05;
}
}
Enjoy!Smile

The following 7 users say thank you to codybenti for this useful post:

Canuck_Modz, Devastation, forflah123, FutureOps, Shock_Mods, Sweet_Cheeba, worrorfight
09-14-2013, 08:55 PM #20
Originally posted by Source
Im releasing the base today


I would like your permission to release a modified version of your Jericho Missile System in the Wold at War section if that's OK.
I was going to PM you but your inbox is full. PM me back.
Thanks.
09-15-2013, 01:17 AM #21
Originally posted by codybenti View Post
I would like your permission to release a modified version of your Jericho Missile System in the Wold at War section if that's OK.
I was going to PM you but your inbox is full. PM me back.
Thanks.


Yea, No problem Winky Winky Happy
09-15-2013, 02:03 AM #22
Originally posted by x View Post
Yea, No problem Winky Winky Happy


I'll release as soon as I have my youtube back.
Youtube froze my account for 2 weeks because of some copyright issues with my Golden Gun Game Video. That was a week ago.
:fyou: you Youtube.:argh:
10-07-2013, 06:32 PM #23
the video is gone??

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo