UGX-Mods

Call of Duty 5: World at War => Help Desk => Modding => Topic started by: xkhaiser on August 03, 2019, 09:32:21 pm

Title: Zombie effects
Post by: xkhaiser on August 03, 2019, 09:32:21 pm
Hi, i'm working on a custom map and i was wondering if is there a way to give a zombie a lightning effect or fire effect, thanks in advance
Title: Re: Zombie effects
Post by: gympie6 on August 08, 2019, 09:01:42 pm
Hi, i'm working on a custom map and i was wondering if is there a way to give a zombie a lightning effect or fire effect, thanks in advance
(https://media.discordapp.net/attachments/342016986047578114/523964733821288478/58B7AE5D78333F7346E1537B347DE0BAD2889F89.png?width=759&height=569)

Yes that is possible!

First find the fx that you like and save the file names. (It's best to use a single fx effect)
Second, add this fx in your modbuilder!

(https://i.gyazo.com/ef5eb4edf258d098d34bc3b1baf207e7.png)

Code Snippet
Plaintext
fx,YourFxLocation
The root starts at: C:Program Files (x86)\Steam\steamapps\common\Call of Duty World at War\raw\fx
Then add this into your mapname.gsc.
Example:
(https://i.gyazo.com/b8a47f3cade2855976a07f346b50a899.png)
Give it a name and your location.
Code Snippet
Plaintext
level._effect["Your Effect Name Here"] = loadfx("LOCATION");
Still your root starts at: C:Program Files (x86)\Steam\steamapps\common\Call of Duty World at War\raw\fx
Then at last add this:
(https://i.gyazo.com/95b8fc2160ad730a67f40216de91f388.png)
Code Snippet
Plaintext
PlayFxOnTag( level._effect["Your Effect Name Here"], self, "JointName" );
If you want to place it on another joint choose something from this list:
https://wiki.zeroy.com//index.php?title=Call_of_duty_5:_Player_Models_Joints_%26_Tags (https://wiki.zeroy.com//index.php?title=Call_of_duty_5:_Player_Models_Joints_%26_Tags)
Compile plus build your mod and you are done!