[Help] Changing impact effect of a weapon
-
Rudd
- Retired PR Developer
- Posts: 21225
- Joined: 2007-08-15 14:32
Re: [HELP] Changing impact effect of a weapon
I think you should be looking in the explosions/impacts effects?
-
Rhino
- Retired PR Developer
- Posts: 47909
- Joined: 2005-12-13 20:00
Re: [HELP] Changing impact effect of a weapon
effects are triggered by two materials coming into contact with each other. ie, the material of the projectile coming into contact with the terrain material or w/e.
-
Sniperdog
- Retired PR Developer
- Posts: 1177
- Joined: 2009-02-27 00:06
Re: [HELP] Changing impact effect of a weapon
The impact effect for the HAT is found here:
mods\pr\objects\effects_server.zip/impacts/explosions/e_exp_medium
mods\pr\objects\effects_server.zip/impacts/explosions/e_exp_medium


Will Stahl aka "Merlin" in the Squad community
-
Amok@ndy
- Retired PR Developer
- Posts: 5144
- Joined: 2008-11-27 22:13
Re: [HELP] Changing impact effect of a weapon
he is not trying to replace the effect but creating a new one and adding it to the hat without replacing the old one

-
Rhino
- Retired PR Developer
- Posts: 47909
- Joined: 2005-12-13 20:00
Re: [HELP] Changing impact effect of a weapon
[quote=""'[R-CON"]Amok@ndy;1446298']he is not trying to replace the effect but creating a new one and adding it to the hat without replacing the old one[/quote]
and what did I say?
In only want to know how i change the impact effect of the HAT.
I made a new one and wanted to test it.[/quote]
If you really know what I'm saying you really know the answer... If effects are triggered by two materials coming into contact with each other, then crating a new one is fairly obvious... If you still haven't got it you need to define a new trigger for materials coming into contact in guess where? The material settings....
If you want to change the impact effect of the HAT not to use a standard explosion, then you obviously need to change the effect for the material used by the H-AT.....
"Yes I know" is a pointless response when you dont have a clue what I'm on about.
and what did I say?
[quote="SirCommandant""]Yes I know.[R-DEV]Rhino wrote:effects are triggered by two materials coming into contact with each other. ie, the material of the projectile coming into contact with the terrain material or w/e.
In only want to know how i change the impact effect of the HAT.
I made a new one and wanted to test it.[/quote]
If you really know what I'm saying you really know the answer... If effects are triggered by two materials coming into contact with each other, then crating a new one is fairly obvious... If you still haven't got it you need to define a new trigger for materials coming into contact in guess where? The material settings....
If you want to change the impact effect of the HAT not to use a standard explosion, then you obviously need to change the effect for the material used by the H-AT.....
"Yes I know" is a pointless response when you dont have a clue what I'm on about.
-
Rhino
- Retired PR Developer
- Posts: 47909
- Joined: 2005-12-13 20:00
Re: [HELP] Changing impact effect of a weapon
Well "Yes I know" isn't really the response when you dont knowSirCommandant wrote:OK,
I thoght the effcttriggering is handled like it is at the vehicles, where you can clearly say wich effect is going to be played when the projectile of the vehicle weapon is hitiing the ground (or something else)
and effect trigger for vehicles is also done by materials... The effects your thinking of is you define the effect when a weapon is fired, ie, the smoke puffs/muzzle flash effects. Impact effects are triggered via materials....
-
Rhino
- Retired PR Developer
- Posts: 47909
- Joined: 2005-12-13 20:00
Re: [HELP] Changing impact effect of a weapon
dont use the BF2 editor's material editor its shit and dont work.
If you go into your \pr_edit\common\Material\ folder you should find a "MaterialEditor.exe", if not you can download it on the BFeditor forums if you look around for it.
open that up and then you will have all the materials, you pick your source material, ie, the projectile, which for a bullet, or more precisest a 5.56mm round from an assault rifle, which if you search for "556" you will find it, and then you select your destination material, ie, dirt, and then you have all the material properties you need like its damage the projectile dose to that material etc. In the "Material Settings props" bit you will also see some "set effect template"s and "Set sound tempests", and for each one you will notice they have a file for them, ie, one of the dirt templates is "e_bhit_s_dirt", ie, when a bullet hits the dirt, that's the effect that is played.

If you want to change the effect, put in a new effect there and you can also add one by clicking the add prop button.
If you go into your \pr_edit\common\Material\ folder you should find a "MaterialEditor.exe", if not you can download it on the BFeditor forums if you look around for it.
open that up and then you will have all the materials, you pick your source material, ie, the projectile, which for a bullet, or more precisest a 5.56mm round from an assault rifle, which if you search for "556" you will find it, and then you select your destination material, ie, dirt, and then you have all the material properties you need like its damage the projectile dose to that material etc. In the "Material Settings props" bit you will also see some "set effect template"s and "Set sound tempests", and for each one you will notice they have a file for them, ie, one of the dirt templates is "e_bhit_s_dirt", ie, when a bullet hits the dirt, that's the effect that is played.

If you want to change the effect, put in a new effect there and you can also add one by clicking the add prop button.
-
Rhino
- Retired PR Developer
- Posts: 47909
- Joined: 2005-12-13 20:00
Re: [HELP] Changing impact effect of a weapon
irrc yes but aint done it for a while. most likley something your not doing or doing wrong.
Like mentioned before in this topic, the simplest way to test a new effect is just to replace an old effect, rather than adding a brand new one.
Like mentioned before in this topic, the simplest way to test a new effect is just to replace an old effect, rather than adding a brand new one.
-
Sniperdog
- Retired PR Developer
- Posts: 1177
- Joined: 2009-02-27 00:06
Re: [HELP] Changing impact effect of a weapon
This is because the projectiles are stored in a seperate files which are not listed in the HAT tweaks.I already opened the HAT in the editor and found the value for the impact effect, but I couldn't change it.
If you made a new effect it will be much easier to simply place the new effect in the effects_server.zip and then reference your new effect in the given projectiles folders.
To find what HAT weapon a given faction uses go to
Code: Select all
objects/kits_server.zip\<faction_name>\<faction_name>_at.confor the us it is this:
Code: Select all
rem -------------------------------------
ObjectTemplate.addTemplate kni_knife
ObjectTemplate.addTemplate klappspaten
ObjectTemplate.addTemplate usrif_m4iron_6
[u][b]ObjectTemplate.addTemplate usatp_predator[/b][/u]
ObjectTemplate.addTemplate hgr_smoke
ObjectTemplate.addTemplate binocular
ObjectTemplate.addTemplate medikit_dressing
ObjectTemplate.addTemplate hgr_incendiary
rem -------------------------------------Code: Select all
objects\weapons_server.zip/Handheld/<weapon_name>/<weapon_name>.tweakCode: Select all
ObjectTemplate.projectileTemplate [u][b]at_predator[/b][/u]Code: Select all
C:\Program Files (x86)\EA GAMES\Battlefield 2\mods\pr_repo\objects\weapons_server.zip/Armament/missiles/<projectile_name>/<projectile_name>.tweakCode: Select all
ObjectTemplate.detonation.endEffectTemplate [u][b]e_exp_medium[/b][/u]Code: Select all
objects\effects_server.zip/impacts/explosionsI very much like that you are playing around with the effects though as it is an area where we currently don't really have a specialist in atm, so if you keep it up and make something worthwhile we may take a look
Last edited by Sniperdog on 2010-09-23 13:09, edited 2 times in total.


Will Stahl aka "Merlin" in the Squad community
-
Rhino
- Retired PR Developer
- Posts: 47909
- Joined: 2005-12-13 20:00
Re: [HELP] Changing impact effect of a weapon
Ah ye that's right SD. I was thinking of the impact effect rather than the explosion of the rocket itself after it "destroyed itself" 


