UGX-Mods

Call of Duty 5: World at War => Help Desk => Scripting => Topic started by: KDXDARK on March 26, 2013, 10:45:34 pm

Title: Eletric fence?
Post by: KDXDARK on March 26, 2013, 10:45:34 pm
is possible i can get the electric fence (script and prefab) from the UGX Cabin? i want to add it to my map :)
Title: Re: Eletric fence?
Post by: SajeOne on March 26, 2013, 10:58:51 pm
Make a fence, put a trigger multiple around the fence that in code damages the player when the player is touching the trigger multiple using the "DoDamage( int );" function and set the player as teleported so the electricity will run over the screen like when you get hit by the wunderwaffle. Then just play the fx on a loop through server script and stop the loop and damage whenever whatever event you want is triggered to turn off the fence.

Edit: "SetTransported( int );" is the function to put electricity on the players screen, just call it on the players.


Title: Re: Eletric fence?
Post by: KDXDARK on March 27, 2013, 07:41:40 pm
yeah but i want with the electric pole and all the things :)
Title: Re: Eletric fence?
Post by: SajeOne on March 27, 2013, 09:00:49 pm
yeah but i want with the electric pole and all the things :)
then just make them in radiant or model them?
Title: Re: Eletric fence?
Post by: KDXDARK on March 27, 2013, 10:03:21 pm
then just make them in radiant or model them?
you never play UGX Cabin?

please see some videos, and you going to know what i am talking about :)
Title: Re: Eletric fence?
Post by: geh233 on March 28, 2013, 12:18:25 am
you never play UGX Cabin?

please see some videos, and you going to know what i am talking about :)
dude im pretty sure he helped make that map  lol
Title: Re: Eletric fence?
Post by: SajeOne on March 28, 2013, 12:24:30 am
dude im pretty sure he helped make that map  lol
lol i wish. I didn't get here until comosea.
Title: Re: Eletric fence?
Post by: treminaor on March 29, 2013, 07:43:46 pm
dude im pretty sure he helped make that map  lol
UGX was only comprised of myself, W1NG3D, and Cold when UGX Cabin was made. I mapped the outside area and scripted the map, W1NG3D mapped the cabin and underground areas and did the voiceovers, and Cold composed all of the music.
Title: Re: Eletric fence?
Post by: KDXDARK on March 29, 2013, 09:41:38 pm
UGX was only comprised of myself, W1NG3D, and Cold when UGX Cabin was made. I mapped the outside area and scripted the map, W1NG3D mapped the cabin and underground areas and did the voiceovers, and Cold composed all of the music.
ok, now i edit the title :)
Title: Re: Eletric fence?
Post by: treminaor on March 29, 2013, 10:01:46 pm
ok, now i edit the title :)
I don't have the source anymore, so no I cannot give you a prefab. You are welcome to use the electric fence script from the UGX Cabin iwd if you can make your own prefab. It just uses the zapper fx if I remember correctly.
Title: Re: Eletric fence?
Post by: KDXDARK on March 29, 2013, 11:16:44 pm
I don't have the source anymore, so no I cannot give you a prefab. You are welcome to use the electric fence script from the UGX Cabin iwd if you can make your own prefab. It just uses the zapper fx if I remember correctly.
i see the script but at what i need give the kvps? that is the problem :)
Title: Re: Eletric fence?
Post by: treminaor on March 29, 2013, 11:45:21 pm
i see the script but at what i need give the kvps? that is the problem :)
The KVPs should be fully evident in the script.