Make shotgun shoot grenades

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
swado95
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 304
Joined: Wed Apr 08, 2009 7:36 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Where I whant to be.

Make shotgun shoot grenades

Post by swado95 »

Hello. Im trying to get my missile launcher to shoot grenades like a shot gun. Basically making the the missile launcher shoot like the shot gun.... then have the tracers for the shot gun be grenades that exploded when hitting you.

My full plane is for my map to be mostly in closed so when I fire my grenades they bounce of the walls and floor till it hits someone.

If you can show me what its suppose to look like or tell me how to do it that would be great! :yes:
obiboba3po
2008 Most Technically Challenging Avatar
Posts: 2376
Joined: Tue Feb 12, 2008 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: NJ, USA

Re: Make shotgun shoot grenades

Post by obiboba3po »

I can help you start, but ive never fully achieved the bouncing around the room part.
First off, you'll need the said weapon to be labeled, "grenade", like so:
Hidden/Spoiler:
ClassLabel = "grenade"
Then give it a salvo count of 5 or something, and a nice spread so that its not all a clump when you shoot it.
secondly, in the ordanance file, (labeled "shell"), play around with these lines:
Hidden/Spoiler:
Velocity = "40.0"
Gravity = "1.75"
velocity is the speed intensity essentially, and gravity basically defines whether it will go up or down once its in the air.
I know theres a line telling the shell (grenades) to bounce off objects, that would go in your ord file, but i dont know of one that tells it to bounce off the terrain as well. Hope this helps
User avatar
swado95
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 304
Joined: Wed Apr 08, 2009 7:36 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Where I whant to be.

Re: Make shotgun shoot grenades

Post by swado95 »

I make the rocket odf have the grenades ord file right?
Post Reply