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

Sliding Automatic Doors - ZM

broken avatar :(
Created 8 years ago
by MakeCents
0 Members and 1 Guest are viewing this topic.
14,338 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 4 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
Signature
×
MakeCents's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Auto Sliding Doors



INSTRUCTIONS

 - Add the script to your scripts folder with your usermaps\MAP NAME\scripts\zm\zm_mapname.gsc

 - Add this to the top of you zm_mapname.gsc:
Code Snippet
Plaintext
#using scripts\zm\sliding_door;
- Add this to your main function in your zm_mapname.gsc
Code Snippet
Plaintext
	sliding_door::init(  );
- Add this to your zone file:
Code Snippet
Plaintext
	scriptparsetree,scripts/zm/sliding_door.gsc

 - Add the prefab to your map. (If you stamp it, make sure the trigger use targets the trigger multiple, the multiple targets each door, and each door targets a script_struct, where the door will move to)

 - Compile map and link at the least.

NOTE
Sound setup not included. Script is setup that the trigger multiple will have a script_sound kvp that will be the alias for your sound.


INCLUDES
Two door examples included
 - slide apart
 - quad expand door
Script
Updated 2-11-17 -  supports comma delimited script_flags, both default and mc methods.
Last Edit: February 12, 2017, 04:07:03 am by MakeCents
broken avatar :(
×
broken avatar :(
Location: gbIsle of Man
Date Registered: 17 July 2013
Last active: 4 years ago
Posts
536
Respect
Forum Rank
Zombie Enslaver
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
- It was a clear black night, a clear white moon -
Signature
<3

AnimalLover

Aranda
Aldenrade
Christmas

<3

×
animallover's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Thank you :)
broken avatar :(
×
broken avatar :(
Location: usGarrett, IN
Date Registered: 4 May 2014
Last active: 5 years ago
Posts
164
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
Signature
The world will always underestimate me...until i show them what my creativity is capable of.
×
Erthrock's Groups
I cant find my maps .gsc in shared/raw/scripts? Where is it located? I only see the giants .gsc
broken avatar :(
×
broken avatar :(
The King of Zombies
Location: usLouisiana
Date Registered: 24 June 2013
Last active: 4 years ago
Posts
2,148
Respect
Forum Rank
King of the Zombies
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Signature
Donate to me if you enjoy my work. https://www.paypal.me/thezombiekilla6
×
Dust's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Dust's Contact & Social LinksMrZ0mbiesFanaticdust103194MrZ0mbiesFanatic
I cant find my maps .gsc in shared/raw/scripts? Where is it located? I only see the giants .gsc

Your mapname.gsc is found in, usermaps\MAP NAME\scripts\zm\
broken avatar :(
×
broken avatar :(
Location: es
Date Registered: 22 July 2013
Last active: 7 years ago
Posts
4
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
My Contact & Social Links
More
×
Chusoplay115's Groups
Chusoplay115's Contact & Social LinksChusoplay115
How can i change the cost price? I can't select the trigger to change zombie_cost   :(
broken avatar :(
×
broken avatar :(
Location: usGarrett, IN
Date Registered: 4 May 2014
Last active: 5 years ago
Posts
164
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
×
Erthrock's Groups
How can i change the cost price? I can't select the trigger to change zombie_cost   :(
you need to stamp the prefab, then you can edit the cost
broken avatar :(
×
broken avatar :(
Location: auAustralia
Date Registered: 4 October 2016
Last active: 7 years ago
Posts
59
Respect
Forum Rank
Rotting Walker
Primary Group
Member
Signature
What is the meaning of life? Dank Memes.
×
SponsoredByCloro's Contact & Social Links
So, since I have zoning it's required to stamp the prefab, when I do, what exactly do I need to do to get it working?

This has been breaking my brain, i've tried fixing myself, but can't get it to work.

Edit: Fixed it, turns out the zombie counter I was using broke all the trigger_use's
Last Edit: October 09, 2016, 06:09:26 pm by HitmanVere
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 3 September 2016
Last active: 6 years ago
Posts
25
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
ect0's Groups
ect0's Contact & Social Links
Could i add a sound to it? It adds more to the realism...
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 4 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
×
MakeCents's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Could i add a sound to it? It adds more to the realism...

Yes, please review this section of instructions.

NOTE
Sound setup not included. Script is setup that the trigger multiple will have a script_sound kvp that will be the alias for your sound.
broken avatar :(
×
broken avatar :(
Location: gb
Date Registered: 5 September 2014
Last active: 7 years ago
Posts
58
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
dextro62's Groups
dextro62's Contact & Social Links
Hey the doors work great.
I changes the script_sound to my alias and the sound plays when the door opens.  But if i'm on the other side of the map and a zombie walks through the door the sound still plays. So how do i make it so the sound can only be heard when near the door.
Thanks.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 4 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
×
MakeCents's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Hey the doors work great.
I changes the script_sound to my alias and the sound plays when the door opens.  But if i'm on the other side of the map and a zombie walks through the door the sound still plays. So how do i make it so the sound can only be heard when near the door.
Thanks.

It sounds like you set up your alias as a 2d sound. If so, make it a 3d sound and adjust the distance, all in the alias file.
broken avatar :(
×
broken avatar :(
Location: gb
Date Registered: 5 September 2014
Last active: 7 years ago
Posts
58
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
dextro62's Groups
dextro62's Contact & Social Links
It sounds like you set up your alias as a 2d sound. If so, make it a 3d sound and adjust the distance, all in the alias file.
Thanks it's working now. I was also wondering if you could have a different sound play when the door closes than when it opens?
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 4 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
×
MakeCents's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Thanks it's working now. I was also wondering if you could have a different sound play when the door closes than when it opens?

You could by changing this:
Code Snippet
Plaintext
	while(1)
{
self waittill("trigger");
if(isdefined(self.script_sound))
{
self PlaySound(self.script_sound);
}
for( i=0;i<doors.size;i++ )
{
time = Distance(doors[i].goto,doors[i].origin)/100;
doors[i] MoveTo(doors[i].goto,time);
}
self TouchingEnts();
if(isdefined(self.script_sound))
{
self PlaySound(self.script_sound);
}
for( i=0;i<doors.size;i++ )
{
time = Distance(doors[i].start,doors[i].origin)/100;
doors[i] MoveTo(doors[i].start,time);
}
}
specifically modifying the second one of these:
Code Snippet
Plaintext
		if(isdefined(self.script_sound))
{
self PlaySound(self.script_sound);
}
by hard coding the sound to play on close or by adding another kvp for it to check instead of script_sound, such as script_string
Last Edit: June 24, 2017, 08:24:58 pm by MakeCents
broken avatar :(
×
broken avatar :(
Location: gb
Date Registered: 5 September 2014
Last active: 7 years ago
Posts
58
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
dextro62's Groups
dextro62's Contact & Social Links
It worked. Thanks for the help, i appreciate it.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 July 2016
Last active: 7 years ago
Posts
1
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
My Contact & Social Links
More
×
tymmc's Groups
tymmc's Contact & Social LinkstymmctymmcTheRealTymmctymmc02
Where can I find my zone folder?

 
Loading ...