Call of Duty: Black Ops 3 => Downloadable Items for Mappers => Custom Maps, Mods & Tools => Scripts => Topic started by: MakeCents on September 28, 2016, 08:44:47 pm
Title: Sliding Automatic Doors - ZM
Post by: MakeCents on September 28, 2016, 08:44:47 pm
- 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: - Add this to your main function in your zm_mapname.gsc - Add this to your zone file:
- 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.
Title: Re: Sliding Automatic Doors - ZM
Post by: animallover on September 28, 2016, 09:15:02 pm
Thank you :)
Title: Re: Sliding Automatic Doors - ZM
Post by: Erthrock on September 30, 2016, 03:57:37 pm
I cant find my maps .gsc in shared/raw/scripts? Where is it located? I only see the giants .gsc
Title: Re: Sliding Automatic Doors - ZM
Post by: Dust on September 30, 2016, 05:07:04 pm
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.
Title: Re: Sliding Automatic Doors - ZM
Post by: dextro62 on June 24, 2017, 02:09:06 pm
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.
Title: Re: Sliding Automatic Doors - ZM
Post by: MakeCents on June 24, 2017, 02:28:56 pm
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.
Title: Re: Sliding Automatic Doors - ZM
Post by: dextro62 on June 24, 2017, 04:21:23 pm
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: specifically modifying the second one of these: 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
Title: Re: Sliding Automatic Doors - ZM
Post by: dextro62 on June 24, 2017, 09:56:54 pm
It worked. Thanks for the help, i appreciate it.
Title: Re: Sliding Automatic Doors - ZM
Post by: tymmc on July 23, 2017, 03:52:21 pm