Exploding Weapons?

Forum Archive - from http://theuniversal.net
Locked
onionguy92
Posts: 107
Joined: Sat Dec 02, 2006 10:47 pm
Location: The Northern State of the Continental US

Exploding Weapons?

Post by onionguy92 »

I would like a weapon for my world that drops from the vehicle in a bomb-like way, and then explodes. It is working fine, but I can't get it to explode. Any ideas?
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post by Mit »

In your weapon in the GameScript.mts you should have

Code: Select all

OBJECT=ExpProjectile
if you currently have OBJECT=Projectile itll behave the same but won't explode.

if you already have that, could you copy and paste the weapon in question and i'll have a look..
onionguy92
Posts: 107
Joined: Sat Dec 02, 2006 10:47 pm
Location: The Northern State of the Continental US

Post by onionguy92 »

Okay, I got it to work. Now, the true aim of this weapon is to be used in watercraft. The boat would leave a bomb floating on the surface of the water, which would explode either a) when it reached the expiry time, or b) when a player accidentally hit it. I'm thinking object ExpLinear2 might do the trick when coupled with Fire=Bomb, but when I try it on the world, nothing happens.
Here's the code:

Code: Select all

Weapon 2
{ 	# Sea Grenade
Fire=Bomb
Control=Basic
damage=70 
builddamage=0 
graphic=3 
item=None
prox=4 
param=2000
speed=1000
delay=1500
pitch=270
object=ExpLinear2
sound=6 
anim=AnimFire 
} 
If I use ExpLinear instead, the bomb floats in mid-air at the height of the vehicle weapon when it was fired. StaticGrav would pull the bomb to the ground, but it would then not explode and anyways go off on contact with the ground/sea. Any ideas?
Locked