View unanswered posts | View active topics It is currently Wed Dec 25, 2024 5:22 pm



Reply to topic  [ 7 posts ] 
 Attachable that explodes on attaching? 
Author Message

Joined: Fri Dec 14, 2012 5:44 am
Posts: 201
Reply with quote
Post Attachable that explodes on attaching?
how would you make an attachable that when it comes in contact with an actor is sticks to them for a few seconds and explodes?

I want it to explode....


Sun Feb 24, 2013 6:16 am
Profile
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13144
Location: Here
Reply with quote
Post Re: Attachable that explodes on attaching?
Are you asking for an attachable that explodes when spawned? (since as soon as it's spawned its attached to its parent actor)

Or an attachable that is attached to the actor that, when it comes in contact with another actor, detaches from its original actor, attaches to the new actor, and then explodes?

Or something else? You're a bit vague here.


Sun Feb 24, 2013 6:27 am
Profile
User avatar

Joined: Sun Jan 28, 2007 10:32 pm
Posts: 1609
Location: UK
Reply with quote
Post Re: Attachable that explodes on attaching?
I'm guessing a timed stickybomb of some description, either thrown or fired from some kind of launcher. I used a two-stage projectile for the one I made, though I imagine it could be done with a single-stage projectile as well with a decent script.


Sun Feb 24, 2013 6:32 am
Profile YIM

Joined: Fri Dec 14, 2012 5:44 am
Posts: 201
Reply with quote
Post Re: Attachable that explodes on attaching?
CaveCricket48 wrote:
Are you asking for an attachable that explodes when spawned? (since as soon as it's spawned its attached to its parent actor)

Or an attachable that is attached to the actor that, when it comes in contact with another actor, detaches from its original actor, attaches to the new actor, and then explodes?

Or something else? You're a bit vague here.



ah sorry, I meant an attachable that is spawned as a stand alone object and sits there until it comes into contact with any actor within range and sticks to them and explodes.


Mon Feb 25, 2013 4:59 am
Profile

Joined: Fri Dec 14, 2012 5:44 am
Posts: 201
Reply with quote
Post Re: Attachable that explodes on attaching?
Arcalane wrote:
I'm guessing a timed stickybomb of some description, either thrown or fired from some kind of launcher. I used a two-stage projectile for the one I made, though I imagine it could be done with a single-stage projectile as well with a decent script.


yeah or this.

Basically I'm creating the T-virus. After I figure out this I'll replace "Explode" with "Kill original actor and spawn zombie in place".


Mon Feb 25, 2013 5:00 am
Profile
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13144
Location: Here
Reply with quote
Post Re: Attachable that explodes on attaching?
In that case you don't want to use an Attachable.

You could either use a wound emitter with a few tricks to make a sticky bomb, or a modification of the Coalition Remote-GL's sticky grenade script.


Mon Feb 25, 2013 9:18 pm
Profile
User avatar

Joined: Sun Jan 28, 2007 10:32 pm
Posts: 1609
Location: UK
Reply with quote
Post Re: Attachable that explodes on attaching?
What I did was a double-stage AEmitter/MOSRotating. The first stage is thrown or launched and has a GibImpulseLimit of 1 so it breaks on the first thing it hits to gib into the second stage; the second stage has a script that makes it stick to whatever it just spawned next to, then explode a few seconds later.

Take in mind this is quite old, may be buggy, and will stick to anything it hits.



Mon Feb 25, 2013 11:22 pm
Profile YIM
Display posts from previous:  Sort by  
Reply to topic   [ 7 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.048s | 13 Queries | GZIP : Off ]