Weapon effects [Solved]
Moderator: Moderators
-
={Z32}=Kfm946
- Private Second Class
- Posts: 70
- Joined: Wed Jul 30, 2008 6:49 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Uhh...Not behind you...
- Contact:
Weapon effects [Solved]
I have two weapon effect problems:
1. i made a custom effect for a grenade but ingame, half the time it uses the regular effect and the custom one the other half. how do i fix it?
2. this is more about explosions but watever. i want to attach an explosion to the sniper ordinance, but its not working out too well. (i made the odfs just for the special sniper rifle in the side's folder (all) and the common folder and worked out all the class parent and stuff already)
These are probably the last two things i need for my new map (Invasion of Sullust) so I really need help fast. i'm already past the original release date that i wanted (halloween).
1. i made a custom effect for a grenade but ingame, half the time it uses the regular effect and the custom one the other half. how do i fix it?
2. this is more about explosions but watever. i want to attach an explosion to the sniper ordinance, but its not working out too well. (i made the odfs just for the special sniper rifle in the side's folder (all) and the common folder and worked out all the class parent and stuff already)
These are probably the last two things i need for my new map (Invasion of Sullust) so I really need help fast. i'm already past the original release date that i wanted (halloween).
- DarthD.U.C.K.
- Master of the Force

- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: weapon effects
1. post the grenade odfs
2.post the sniperrifle odfs (inclusiding the ords)
3. dont care about pasting a releasedate who cares?
and who prefers a quickly-thrown-toghether but punktual map a well done and balanced one but delayed?
2.post the sniperrifle odfs (inclusiding the ords)
3. dont care about pasting a releasedate who cares?
and who prefers a quickly-thrown-toghether but punktual map a well done and balanced one but delayed?
-
bokkenblader56
- Private First Class
- Posts: 85
- Joined: Mon Aug 04, 2008 7:20 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: South Carolina
- Contact:
Re: weapon effects
I don't know about 1), but I've done 2) myself. Not sure if it's the easiest way, but it seemed to work. Just copy "com_weap_inf_rocket_launcher_exp" and rename it to, for example, "all_weap_inf_sniper_rifle_exp.odf." Actually, that's not entirely necessary, but it helped keep me organized. Then add...
...to "all_weap_inf_sniper_rifle_ord". I think that's how I did it, anyway. Or if you want to do it with parent files, copy "all_weap_inf_rocket_launcher_exp" and rename it as necessary (or not) and reference it in your ordnance file. It should work.
Code: Select all
ExplosionName = "all_weap_inf_sniper_rifle_exp"-
={Z32}=Kfm946
- Private Second Class
- Posts: 70
- Joined: Wed Jul 30, 2008 6:49 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Uhh...Not behind you...
- Contact:
Re: weapon effects
rep_weap_inf_thermaldetonator_exp.odf
all_weap_hero_sniper_rifle.odf (its only for han)
_ord
_exp
com_weap_hero_sniper_rifle.odf
_ord
_exp
@duck: btw, i've been working on this since june er sumthin so u cant say its quickly put together 'n' stuff
@bokkenblader: I tried that and it didn't work
Hidden/Spoiler:
Hidden/Spoiler:
Hidden/Spoiler:
Hidden/Spoiler:
Hidden/Spoiler:
Hidden/Spoiler:
Hidden/Spoiler:
@bokkenblader: I tried that and it didn't work
- DarthD.U.C.K.
- Master of the Force

- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: weapon effects
i didnt say your map is quickly-thrown-together, i just wanted to point that out that you dont have to care to much about map-release-delays
-
={Z32}=Kfm946
- Private Second Class
- Posts: 70
- Joined: Wed Jul 30, 2008 6:49 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Uhh...Not behind you...
- Contact:
Re: weapon effects
ok np
Edit: so did you find anything wrong with the odfs?
Edit: so did you find anything wrong with the odfs?
-
bokkenblader56
- Private First Class
- Posts: 85
- Joined: Mon Aug 04, 2008 7:20 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: South Carolina
- Contact:
Re: weapon effects
I'm not sure if it would have any bearing on the grenade's effects, it probably doesn't, but do you have a separate effect set in "com_weap_inf_thermaldetonator_exp.odf"?
I've never really messed with Parent and Child ODF files. I always just copied the common files and renamed them, then copied the extra info in the corresponding child ODF into the renamed common file so that it was all in one place. So, that was my one card for the sniper explosion.
*EDIT* Dangit, I took to long to edit that.
I've never really messed with Parent and Child ODF files. I always just copied the common files and renamed them, then copied the extra info in the corresponding child ODF into the renamed common file so that it was all in one place. So, that was my one card for the sniper explosion.
*EDIT* Dangit, I took to long to edit that.
Last edited by bokkenblader56 on Fri Nov 07, 2008 6:28 pm, edited 2 times in total.
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: weapon effects
I'm fairly certain that explosion effects are able to be stacked (so that the .odf could call for more than one and have it randomly choose like you're seeing), which is why when you have a parent grenade using one effect and your grenade using another, both appear.
The solution is to make it not rely on the parent - copy everything from the parent .odf into the child .odf and set its classlabel up top equal to the grenade parent's classlabel (instead of the classparent line).
The solution is to make it not rely on the parent - copy everything from the parent .odf into the child .odf and set its classlabel up top equal to the grenade parent's classlabel (instead of the classparent line).
-
={Z32}=Kfm946
- Private Second Class
- Posts: 70
- Joined: Wed Jul 30, 2008 6:49 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Uhh...Not behind you...
- Contact:
Re: weapon effects
yea i was just thinkin of that
Edit: wat about the sniper stuff?
Edit: wat about the sniper stuff?
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: weapon effects
For starters, if your ordnance is going to be a missile, you should have a "launcher" classlabel for your weapon .odf.
That being said, it's just as easy to have a regular sniper rifle and add an explosion onto the bolt.
That being said, it's just as easy to have a regular sniper rifle and add an explosion onto the bolt.
-
={Z32}=Kfm946
- Private Second Class
- Posts: 70
- Joined: Wed Jul 30, 2008 6:49 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Uhh...Not behind you...
- Contact:
Re: weapon effects
ok how do i add the explosion to the bolt?
Edit: originally it wasn't a missile but i thought changing it might help...i guess not though...
Edit: originally it wasn't a missile but i thought changing it might help...i guess not though...
- Sky_216
- Droid Pilot Assassin

- Posts: 2086
- Joined: Mon Feb 13, 2006 3:28 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: weapon effects
Just to confirm: this is 100% true. Make sure when you fix it (either by making a new explosion or removing the effect from one of the files) you clean your sides. All of them. IE delete all the munged side files in the 'build' folder.Maveritchell wrote:I'm fairly certain that explosion effects are able to be stacked (so that the .odf could call for more than one and have it randomly choose like you're seeing), which is why when you have a parent grenade using one effect and your grenade using another, both appear.
-
={Z32}=Kfm946
- Private Second Class
- Posts: 70
- Joined: Wed Jul 30, 2008 6:49 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Uhh...Not behind you...
- Contact:
Re: weapon effects
I did this and now it works. now i need help with the sniper stuffMaveritchell wrote: The solution is to make it not rely on the parent - copy everything from the parent .odf into the child .odf and set its classlabel up top equal to the grenade parent's classlabel (instead of the classparent line).
Edit: How do i attach the explosion to the bolt?!
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: weapon effects
Explosion = "explosionname"
or you can break it down with
ExplosionExpire and ExplosionImpact. All ordnances support an explosion.
or you can break it down with
ExplosionExpire and ExplosionImpact. All ordnances support an explosion.
-
={Z32}=Kfm946
- Private Second Class
- Posts: 70
- Joined: Wed Jul 30, 2008 6:49 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Uhh...Not behind you...
- Contact:
Re: weapon effects
i already did the Explosion = "name" and that doesn't work...Edit: what else do i need to do?
-
bokkenblader56
- Private First Class
- Posts: 85
- Joined: Mon Aug 04, 2008 7:20 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: South Carolina
- Contact:
Re: weapon effects
Isn't there a different one called "ExplosionName"?
- Sky_216
- Droid Pilot Assassin

- Posts: 2086
- Joined: Mon Feb 13, 2006 3:28 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: weapon effects
For grenades use
ExplosionExpire = "x"
where x is the time in seconds you want it to explode after it stops moving.
ExplosionExpire = "x"
where x is the time in seconds you want it to explode after it stops moving.
-
={Z32}=Kfm946
- Private Second Class
- Posts: 70
- Joined: Wed Jul 30, 2008 6:49 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Uhh...Not behind you...
- Contact:
Re: weapon effects
I think you're kinda getting off topic....all i need to know is how to attach the explosion to the bolt of the sniper. everything any1's suggested so far hasn't worked. does any1 know anything else about it?
-
bokkenblader56
- Private First Class
- Posts: 85
- Joined: Mon Aug 04, 2008 7:20 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: South Carolina
- Contact:
Re: weapon effects
In your Common hero sniper rifle's ordnance file, try deleting this line:
. I couldn't really say, but it might be that you're referencing two explosion files. From what I've read, you really only need the ClassParent of all_weap_hero_sniper_rifle_exp to be com_weap_hero_sniper_rifle_exp rather than referencing both of them. Of course, it might have no effect whatsoever.
Code: Select all
Explosion = "com_weap_hero_sniper_rifle_exp"-
={Z32}=Kfm946
- Private Second Class
- Posts: 70
- Joined: Wed Jul 30, 2008 6:49 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Uhh...Not behind you...
- Contact:
Re: weapon effects
nope that didn't do anything....i was thinkin maybe i could just copy the stuff from the com_ odfs and put it in the all_ ones so there wouldn't be any ClassParents involved. do you think that would do anything?
