UGX-Mods

Call of Duty 5: World at War => Help Desk => Mapping => Topic started by: whippytrout on August 16, 2016, 05:06:03 pm

Title: Players can use triggers through wall.
Post by: whippytrout on August 16, 2016, 05:06:03 pm
Hey guys!

I'm finishing up my Alcatraz map but I have a quick question. I have some doors that can only be opened from one side but my problem is that players can still open them from the other side. I have the trigger on one side and the door is clipped. How do you stop players from being able to see/use the trigger through the door/wall?

Thanks,

WhippyTrout
Title: Re: Players can use triggers through wall.
Post by: Psh on August 16, 2016, 05:26:11 pm
I have this issue as well, send halp :alone:
Title: Re: Players can use triggers through wall.
Post by: Psych on August 16, 2016, 05:54:54 pm
Hey guys!

I'm finishing up my Alcatraz map but I have a quick question. I have some doors that can only be opened from one side but my problem is that players can still open them from the other side. I have the trigger on one side and the door is clipped. How do you stop players from being able to see/use the trigger through the door/wall?

Thanks,

WhippyTrout

how thick are your brushs/clips for the door? I have never had this problem before with the same situation as you described. if push comes to shove just move the trigger slightly away from the wall or make a control panel or something away from the door that the player uses instead of going right up to the door
Title: Re: Players can use triggers through wall.
Post by: whippytrout on August 16, 2016, 06:03:01 pm
how thick are your brushs/clips for the door? I have never had this problem before with the same situation as you described. if push comes to shove just move the trigger slightly away from the wall or make a control panel or something away from the door that the player uses instead of going right up to the door

I tried thickening the clip and moving the trigger but they can still use the trigger. One door's clip is 5 units thick and the others is 8.5 units think and I can still open them from the wrong side. It's weird. I can't thicken them anymore or move the trigger further back or it will mess up the door.
Title: Re: Players can use triggers through wall.
Post by: StupidEdits on August 16, 2016, 07:46:26 pm
Hope this helps!

Radiant:
Sorry but you are not allowed to view spoiler contents.

Trigger Door:
Sorry but you are not allowed to view spoiler contents.

Opposite Door:
Sorry but you are not allowed to view spoiler contents.
Title: Re: Players can use triggers through wall.
Post by: MakeCents on August 16, 2016, 07:55:22 pm
Hey guys!

I'm finishing up my Alcatraz map but I have a quick question. I have some doors that can only be opened from one side but my problem is that players can still open them from the other side. I have the trigger on one side and the door is clipped. How do you stop players from being able to see/use the trigger through the door/wall?

Thanks,

WhippyTrout

This is interesting, I've always had the opposite issue where you have to have two triggers to be opened from both sides. Are you using a trigger_use, default hintstrings, and default blocker script? Is this a door or debris? Is the door a model or a brush?

If your using custom hintstrings, perhaps adding a BulletTracePassed check would help.
http://wiki.modsrepository.com/index.php?title=Call_of_Duty_4:_Scripting_Reference_-_Trace::BulletTracePassed (http://wiki.modsrepository.com/index.php?title=Call_of_Duty_4:_Scripting_Reference_-_Trace::BulletTracePassed)

If your using default everything, then you will just have to pull the trigger further away from the door, not make it as thick, or something along those lines.
Title: Re: Players can use triggers through wall.
Post by: whippytrout on August 16, 2016, 08:13:38 pm
This is interesting, I've always had the opposite issue where you have to have two triggers to be opened from both sides. Are you using a trigger_use, default hintstrings, and default blocker script? Is this a door or debris? Is the door a model or a brush?

If your using custom hintstrings, perhaps adding a BulletTracePassed check would help.
http://wiki.modsrepository.com/index.php?title=Call_of_Duty_4:_Scripting_Reference_-_Trace::BulletTracePassed (http://wiki.modsrepository.com/index.php?title=Call_of_Duty_4:_Scripting_Reference_-_Trace::BulletTracePassed)

If your using default everything, then you will just have to pull the trigger further away from the door, not make it as thick, or something along those lines.

I'm using a model for the door and the ugx rotating door tutorial found here:
https://confluence.ugx-mods.com/display/UGXMODS/Creating+a+Moving+Door+Blocker (https://confluence.ugx-mods.com/display/UGXMODS/Creating+a+Moving+Door+Blocker)  The trigger is a trigger_use. It's as if the clip is the trigger because no matter how thick I make the clip or how far I move the trigger_use I can always use the trigger.  ???
Title: Re: Players can use triggers through wall.
Post by: MakeCents on August 16, 2016, 08:18:17 pm
I'm using a model for the door and the ugx rotating door tutorial found here: https://confluence.ugx-mods.com/display/UGXMODS/Creating+a+Moving+Door+Blocker (https://confluence.ugx-mods.com/display/UGXMODS/Creating+a+Moving+Door+Blocker)  The trigger is a trigger_use. It's as if the clip is the trigger because no matter how thick I make the clip or how far I move the trigger_use I can always use the trigger.  ???



Interesting. Kvp on the clip are correct? I assume you checked all kvps? Would you mind posting a prefab or pics with kvps?
Title: Re: Players can use triggers through wall.
Post by: whippytrout on August 16, 2016, 09:41:03 pm
Yea I checked all the kvp's they seem right. Here is a prefab, I changed my custom door model to a Cod waw model and moved the clip and trigger back to where they originally were before I extended them since it didn't work.

[You are not allowed to view external links. Register or Login to see them]
Title: Re: Players can use triggers through wall.
Post by: MakeCents on August 17, 2016, 01:11:17 am
Yea I checked all the kvp's they seem right. Here is a prefab, I changed my custom door model to a Cod waw model and moved the clip and trigger back to where they originally were before I extended them since it didn't work.

[You are not allowed to view external links. Register or Login to see them]

I'll be damned. I guess I have never used models for doors before, lol. I tested, and with a brush it only shows on one side, but with a model, it goes through. I had to put the trigger 70 units away from the door to not see it on the otherside.
(https://i.gyazo.com/a7a2100fb081ef2ead6673a4caa45d46.png)

Now I get why so many people said you could use one trigger for both sides of a door, lol. Wow, the little things...

I did however, and I don't know if either of these are correct, get it to work right up to the door, but I changed the clip to weapon clip, and I also change it to caulk and hid it inside the door, and both worked. It's probably not right, but you could test other clips maybe. Clip nosight metal didn't work though, you could still see it on the other side.
Title: Re: Players can use triggers through wall.
Post by: whippytrout on August 17, 2016, 01:19:58 am
Lol I told you man, weird.  :D  I'm glad It's not just me, I thought i was crazy or something. I'll tryout different textures like you said. I'll figure it out one way or another. Thanks for helping.
Title: Re: Players can use triggers through wall.
Post by: HitmanVere on August 17, 2016, 10:47:40 am
Can you try adding caulkbrush inside the model?
Title: Re: Players can use triggers through wall.
Post by: whippytrout on August 30, 2016, 04:39:23 am
Hey guys! I forgot to let everyone know that I solved the issue thanks to your help. I just changed the clip brush to caulk like HitmanVere and MakeCents said. Works like a charm I didn't even have to thicken the brush or anything I have it set the same length, width, and height as the door.  ;D    :nyan:

Thanks,

WhippyTrout