Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Nico on June 07, 2001, 05:13:00 pm

Title: bouncing primary weapon
Post by: Nico on June 07, 2001, 05:13:00 pm
Is that possible?

------------------
venom2506
Member of the Robotech mod for FS2 (//"http://robotechlan.com/freespace2/")

and of Hidden Terror, the Shivan campaign (//"http://www.hiddenterror.f2s.com/index2.html")

and My own page (//"http://www.geocities.com/venom250681/Venom2506.html")
Title: bouncing primary weapon
Post by: wEvil on June 07, 2001, 05:23:00 pm
not without at least a little tweak of the code.

basically youd have to turn the weapon into a small ship with collisions and a bounding box, set all its physics up properly and have your fighter "launch" it every time you fired.



------------------
 http://www.wevil.co.uk ("http://www.wevil.co.uk")  - how NOT to do a website
Title: bouncing primary weapon
Post by: Fattony on June 07, 2001, 06:02:00 pm
Someones been playing ST:Armada.  (http://dynamic.gamespy.com/~freespace/ubb/noncgi/rolleyes.gif)
Title: bouncing primary weapon
Post by: Snipes on June 07, 2001, 07:03:00 pm
heh, just put particle spew in the flag, it looks almost like bouncing  (http://dynamic.gamespy.com/~freespace/ubb/noncgi/tongue.gif)

or put corkscrew in the flag, and the guns'll shoot down...  (http://dynamic.gamespy.com/~freespace/ubb/noncgi/biggrin.gif)
Title: bouncing primary weapon
Post by: Sushi on June 08, 2001, 02:06:00 am
Trying to get the Phoenix cannon to work, eh?  (http://dynamic.gamespy.com/~freespace/ubb/noncgi/smile.gif)

------------------
Sushi- the OTHER white meat!

Accelerate your game-Velocity Mod ("http://sushicw.homestead.com/files/freespace/velocity.htm")
Sushi's Freespace Zone ("http://sushicw.homestead.com/files/freespace/index.htm")-Future home of loads of cool stuff.
Title: bouncing primary weapon
Post by: Nico on June 08, 2001, 06:18:00 am
 
Quote
Originally posted by Fattony:
Someones been playing ST:Armada.   (http://dynamic.gamespy.com/~freespace/ubb/noncgi/rolleyes.gif)

definitively not... I hate ST...

 
Quote
Originally posted by Sushi:
Trying to get the Phoenix cannon to work, eh?

yeah, more likely  (http://dynamic.gamespy.com/~freespace/ubb/noncgi/biggrin.gif)



------------------
venom2506
Member of the Robotech mod for FS2 ("http://robotechlan.com/freespace2/")

and of Hidden Terror, the Shivan campaign ("http://www.hiddenterror.f2s.com/index2.html")

and My own page ("http://www.geocities.com/venom250681/Venom2506.html")
Title: bouncing primary weapon
Post by: Bobboau on June 09, 2001, 02:29:00 pm
set it to spawn itself.

------------------
Bobboau, bringing you products that work.............. in theory
Title: bouncing primary weapon
Post by: Bushwacker on June 10, 2001, 03:39:00 pm
Although with a primary weapon, it won't spawn unless it hits something.

I just had an idea for a gun that works off this rule:  a kinetic energy pulse that absorbs the potential energy of a solid object (i.e. a ship's hull) and used it to rebound (read: reflect) itself off the object.  Absorbing the energy causes minor hull damage, plus just having something smack into a metal plate that hard is going to leave a mark...

Well, whadda ya think?
Title: bouncing primary weapon
Post by: Nico on June 10, 2001, 04:20:00 pm
 
Quote
Originally posted by Bushwacker:
Although with a primary weapon, it won't spawn unless it hits something.

Well, that's not so much of a pb, I don't want the shot to bounce in the void   (http://dynamic.gamespy.com/~freespace/ubb/noncgi/wink.gif)

ok, what I want is one shot, when it explodes spawns one other shot, and so on, 5 times. What I'm supposed to put in the tbl?


------------------
venom2506
Member of the Robotech mod for FS2 ("http://robotechlan.com/freespace2/")

and of Hidden Terror, the Shivan campaign ("http://www.hiddenterror.f2s.com/index2.html")

and My own page ("http://www.geocities.com/venom250681/Venom2506.html")

[This message has been edited by venom2506 (edited 06-10-2001).]
Title: bouncing primary weapon
Post by: Bushwacker on June 10, 2001, 04:45:00 pm
For five-stage bouncing you'll need 5 separate entries:
$Name:  Gun
$Name:  Gun#2
$Name:  Gun#3
$Name:  Gun#4
$Name:  Gun#final

Make them exactly the same, except for one difference in the $Flags section:

Have in "Gun" flag section:  spawn Gun#2 1
in "Gun#2" :  spawn Gun#3 1
"Gun#3":  spawn Gun#4 1
"Gun#4":  spawn Gun#final 1
and don't put a "spawn" flag in the "Gun#final"

if you were doing 6-stage, then you could omit one stage and have alternating between Gun and Gun#2 (I think).  Don't quote me on this since I'm just speculating, but that's a close approximation.

Also, there's no way to control what angle the projectile's going to spit out, except for how you point the ship, and its position relative to the target.



[This message has been edited by Bushwacker (edited 06-10-2001).]
Title: bouncing primary weapon
Post by: Sandwich on June 10, 2001, 04:55:00 pm
 
Quote
Originally posted by Bobboau:
Just a MODern kinda guy


*Groan*
  (http://dynamic.gamespy.com/~freespace/ubb/noncgi/tongue.gif)

------------------
"He who laughs last thinks slowest."
"Just becase you're paranoid doesn't mean they're not out to get you."
"To err is human; to really screw up you need a computer."
Creator of the Sandvich Bar ("http://michael.randelman.com")

[This message has been edited by sandwich (edited 06-10-2001).]
Title: bouncing primary weapon
Post by: Nico on June 11, 2001, 06:26:00 am
cool thanx  (http://dynamic.gamespy.com/~freespace/ubb/noncgi/smile.gif)
Title: bouncing primary weapon
Post by: delta_7890 on June 11, 2001, 08:25:00 am
would this work with beams?  like a deflector beam thing?

Delta
Title: bouncing primary weapon
Post by: Bobboau on June 11, 2001, 10:52:00 am
I didn't put that there, I wanted "MOD master Mike"
and seeing as it will only spawn if it hits something it will rarly have time to hit more than one ship, the only time you'd see it more than twice is if you fired into a fighter bay.

------------------
Bobboau, bringing you products that work.............. in theory
Title: bouncing primary weapon
Post by: Nico on June 11, 2001, 03:48:00 pm
The phoenix works  (http://dynamic.gamespy.com/~freespace/ubb/noncgi/smile.gif) yepee!!!
I won't worry about how many times it will bounce  (http://dynamic.gamespy.com/~freespace/ubb/noncgi/smile.gif) in the corridors of my indoors models, it does bounce a lot  (http://dynamic.gamespy.com/~freespace/ubb/noncgi/smile.gif)
Title: bouncing primary weapon
Post by: Bushwacker on June 11, 2001, 09:05:00 pm
I don't think the "reflected beam thingy" would work, since if you shoot BFReds for example as a primary weapon, it's just the little red laser bolt.  I haven't tried this, but I think the same thing happens when you tell it to spawn a beam, except since the beam is a sort of continuous laser bolt, it'd be like a spark flying off (I think).  I guess you could make it look like the beam is really sending little bits of slag flying off by telling it to spawn standard flak a couple times.

Hmm.  Someone try that and post a screenshot.  I wanna see this.
Title: bouncing primary weapon
Post by: delta_7890 on June 12, 2001, 07:32:00 am
no no, I meant for cap ships for when they fire a continuous beam.

Delta
Title: bouncing primary weapon
Post by: Bushwacker on June 12, 2001, 03:35:00 pm
That's what I meant.  All a beam is is a continuous texture that applies a "hit" every second or so.  Every time the "hit" happens, it does the damage specified in the $Damage section of the weapon's entry in weapons.tbl.  Therefore, logically, any effects dependent on the impact will recur every "hit" that the beam does.  If it works like this, then we might be able to make a beam that "sparks" from hitting a ship.

Starting to get it?
Title: bouncing primary weapon
Post by: Nico on June 12, 2001, 04:13:00 pm
now, now...
Title: bouncing primary weapon
Post by: Jabu on June 12, 2001, 04:24:00 pm
I think beams do damage 6 times every tecond or something like that...
Title: bouncing primary weapon
Post by: Bobboau on June 12, 2001, 07:07:00 pm
16

------------------
Bobboau, bringing you products that work.............. in theory
Title: bouncing primary weapon
Post by: Jabu on June 12, 2001, 07:09:00 pm
If you want to be precise...