UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Destructable wall wit more than 1 shot to break

broken avatar :(
Created 11 years ago
by pcmodder
0 Members and 1 Guest are viewing this topic.
1,709 views
broken avatar :(
×
broken avatar :(
Location: gb
Date Registered: 22 September 2014
Last active: 6 years ago
Posts
360
Respect
Forum Rank
Perk Hacker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Here to make epic maps
×
pcmodder's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
pcmodder's Contact & Social Linksken5hir0pcmodderugx
Hi all i followed this tutorial http://wiki.modsrepository.com/index.php?title=Call_of_Duty_5:_Breakable_Brushes

I made the wall and it destructs after 1 shot , but in the lower part of the tut there is scripts for making it take a specific amount of damage, problem is it says mp and i am not sure where ./ what i should do from the point of scripting after the radiant part.

It is ideally to be a damage trigger only destructable by a weapon obtained through another easter egg step to keep the area hidden until a certain point.

Any help appreciated.
broken avatar :(
×
broken avatar :(
Location: esMadrid
Date Registered: 27 March 2015
Last active: 5 years ago
Posts
371
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
JIGGLYPUFF used SING! YOU fell asleep!
Signature
×
Soy-Yo's Groups
Soy-Yo's Contact & Social LinksSoy-yoElCerdoRey
I've been reading _destructables.gsc and you don't need to do anything special. If you've set the KVPs, just place this line:
Code Snippet
Plaintext
maps\mp\_destructables::init();
after
Code Snippet
Plaintext
maps\_zombiemode::main();
for example.
All the destructables you make will be waiting until you shot their triggers.
So to turn on the trigger you can use this:
Code Snippet
Plaintext
trig = getEnt( "YOUR_TRIGGER_DAMAGE_TARGETNAME","targetname" ); // get the trigger first of all
trig trigger_off(); // "lock" the trigger first

// AFTER THE EE STEP HAS BEEN DONE ADD THIS

trig = getEnt( "YOUR_TRIGGER_DAMAGE_TARGETNAME","targetname" ); // if you haven't got it in this function
trig trigger_on(); // "unlock" the trigger
Hope it helps, because I don't know if mp scripts work in zombiemode.
Last Edit: November 07, 2015, 04:37:26 pm by Soy-Yo
broken avatar :(
×
broken avatar :(
Location: gb
Date Registered: 22 September 2014
Last active: 6 years ago
Posts
360
Respect
Forum Rank
Perk Hacker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Here to make epic maps
×
pcmodder's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
pcmodder's Contact & Social Linksken5hir0pcmodderugx
Thanks for the reply Soyo i will try this now and report back :)

 
Loading ...