'Delete Deployable' function for builder armor

Post Reply
blankgirl
Posts: 322
Joined: Fri Dec 16, 2011 4:25 pm
Location: Nebraska, USA
Contact:

'Delete Deployable' function for builder armor

Post by blankgirl »

This would be uber-handy for deleting unwanted/unused/extra items you have deployed during the map. would save the time of killing it yourself and if you're the type to take down your defense before leaving, it would save them an extra minute to find someone to give them a hug.

blankg
Image
Lawlz wrote:
S']['U wrote:
DaJ4ck3L wrote:i love blank girl
:ghey:

You do know that blankgirl is a guy, right? :shh:
I think everyone knows this since he posts pictures of himself after a fucked-up nights. XD
User avatar
Erowid
Site Admin
Posts: 684
Joined: Fri Dec 09, 2011 8:02 am
Location: Wisconsin
Contact:

Re: 'Delete Deployable' function for builder armor

Post by Erowid »

doesn't everyone love the old accidental jump pad trick? :dunce:
__________________________________
____________________________________________________
Image
Image
Image
Image


Image
perrinoia
Site Admin
Posts: 3732
Joined: Sun Jul 01, 2012 7:18 pm

Re: 'Delete Deployable' function for builder armor

Post by perrinoia »

I like this idea, simple to code, too.
Step 1) Modify pitchfork boost function (I forget the function name).
Step 2)

Code: Select all

if($los::object.deployer == %shooter || (GameBase::getTeam(%shooter) != GameBase::getTeam($los::object) && $los::object.deployer != ""))
This will work if you or an enemy deployed the object. Maybe admins should be able to do it too, and maybe it should work on friendly objects that are not welded, too.
Step 3)

Code: Select all

GameBase::throw(%shooter, newObject("", Item, GameBase::getDataName($los::object).itemDataName, false), 1); // or something like that...
No need to figure out if the shooter is wearing a pack if you just make him drop item. If he wants to pick it up, he can. The property "itemDataName" needs to be identified in each StaticShape data block, so the function knows which item to convert the Static Shape into.
Step 4)

Code: Select all

deleteObject($los::object);
Last edited by perrinoia on Wed May 21, 2014 1:05 pm, edited 1 time in total.
Image
User avatar
virus
Posts: 474
Joined: Wed May 22, 2013 10:27 pm
Contact:

Re: 'Delete Deployable' function for builder armor

Post by virus »

The Nappy mod has a pack gun.
[NHOP]Virus
perrinoia
Site Admin
Posts: 3732
Joined: Sun Jul 01, 2012 7:18 pm

Re: 'Delete Deployable' function for builder armor

Post by perrinoia »

Does anyone still play nappy?
Image
User avatar
DaJ4ck3L
Crow{OZ}
Posts: 3375
Joined: Thu Jul 22, 2010 11:51 pm
Contact:

Re: 'Delete Deployable' function for builder armor

Post by DaJ4ck3L »

GameBase::($los::object)

^wat this do.
Image
perrinoia
Site Admin
Posts: 3732
Joined: Sun Jul 01, 2012 7:18 pm

Re: 'Delete Deployable' function for builder armor

Post by perrinoia »

Typo.
Image
blankgirl
Posts: 322
Joined: Fri Dec 16, 2011 4:25 pm
Location: Nebraska, USA
Contact:

Re: 'Delete Deployable' function for builder armor

Post by blankgirl »

Bump

Can we delete unwanted deployables yet? it's already 2014



blackgirl
Image
Lawlz wrote:
S']['U wrote:
DaJ4ck3L wrote:i love blank girl
:ghey:

You do know that blankgirl is a guy, right? :shh:
I think everyone knows this since he posts pictures of himself after a fucked-up nights. XD
Post Reply