Game Development Community

T2 Modding ?

by Michael Cozzolino · in Torque Game Engine · 07/20/2001 (11:44 am) · 3 replies

I have been working on a mod for T2 and it is pretty much done. It is server side. My question is how would I go about creating a cluster bomb. For example. A projectile is shot such as a grenade, it explodes and fragments into more grenade projectiles that in turn explode at different intrevals.

Thanks

Coz

About the author

Indie Developer in the Albany NY area. iOS, PC, Mac OSX development. http://itunes.apple.com/us/artist/michael-cozzolino/id367780489


#1
08/12/2001 (2:54 pm)
I have read something in other post... but i don't rebember where. (maybe at Tribes2 in game forum -scripts and mods)
anyway it was something like this.

function multigrenadeexplosion
{
on explosion summom grenades1,explosion time x, velocity (x,y,z)
grenades2,explosion time x, velocity (x,y,z)
grenades3,explosion time x, velocity (x,y,z)
}

sorry but i don't code.

;-)
#2
08/16/2001 (7:36 pm)
i have ask this in the tribalwar scripting forum and recieved so far this answer:

I guess you could go into the grenade explosion handler and add code to spawn three new grenades and then apply impulses to them all. That would be the obvious way.

Assuming the original and resultant grenades are the same model you could also be tricky and use the original as one of the resultants. Save a little realtime and bandwidth. But that's probably not worth it.

maybe you can try by yourself:

http://www.tribalwar.com/forums/forumdisplay.php?s=80e06db97f1abea9c71bbdddbb41827b&forumid=3
#3
08/16/2001 (8:29 pm)
Sorry, but as of now, the V12 projectile code is broken, so we probably wont be of that much help.

Having said that, the response from the forum makes sense. Search around and find where the grenade is created (new Grenade or somesuch line), then copy and paste it a few times.

Then use applyImpulse ( I think this funcitn should help you). Look through the scripts to find its defenition and some example uses, then I think you should be able to you it to move each of the grenades to a different spot (so they arent all going towards the same spot)