New weapons
by Luke Smith · in Technical Issues · 05/29/2007 (4:00 pm) · 2 replies
Hi
I have replaced the crossbow model with my own model of a pistol. it all works fine however obviously it still shoots out the crossbow projectile that is aflame and explodes on impact. I want this to behave more like a gun than a flaming crossbow. I have been having trouble implementing the bullet tracer resource and I am happy to still use projectiles. I want to change the delay between fireing shot and also change the projectile that is shot aswell as the particles and explosion it creates.
Sorry if this is a noob question but I have been searching for the solution for hours to no avail. thanks alot if anyone can help
regards,
I have replaced the crossbow model with my own model of a pistol. it all works fine however obviously it still shoots out the crossbow projectile that is aflame and explodes on impact. I want this to behave more like a gun than a flaming crossbow. I have been having trouble implementing the bullet tracer resource and I am happy to still use projectiles. I want to change the delay between fireing shot and also change the projectile that is shot aswell as the particles and explosion it creates.
Sorry if this is a noob question but I have been searching for the solution for hours to no avail. thanks alot if anyone can help
regards,
#2
05/29/2007 (5:48 pm)
At the top of the crossbow.cs file you will see the Sounds profiles. You can change the sound to the ones you want there. If you dont want any sounds for you weapon comment out lines 884, 894 and 908. If you look at line 884 then look at line 23 you will see the connection.
Torque Owner Luke Smith
I still cant figure out how to change the delay between shots.
also it still plays a crossbow shooting sound when you fire and an explosion sound on impact. any ideas how to get rid of the explosion sound and change the shooting sound?
One other thing. To add an addition weapon. say a shotgun for example. how would I go about this. presumeably i need to duplicate some code and script files and change the names. can anyone help out with this and is there any tutorials on it?
thanks,