func_door_rotating

Post anything to do with editing Nexuiz here. Whether its problems you've had, questions, or if you just want to show off your work.

Moderators: Nexuiz Moderators, Moderators

Postby divVerent » Thu Jan 01, 2009 2:38 pm

Really, don't force a fixed targetname for the reverse trigger, as it's then not possible to use it in more complex trigger "circuits".

Instead, add a

.float trigger_reverse;

and expect that to be set. Alternatively, compare the origin of the trigger to the midpoint of the door to decide the side on which the trigger is.
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby RoKenn » Thu Jan 01, 2009 6:25 pm

OK, I went for the trigger_reverse solution. I thought about an automatic solution before, but that would restrict the mappers' freedom.

Another thing I noticed: if the door is just closing and is triggered from the wrong side, it will just reopen, ignoring its bidirectionality. Since this could be regarded as a feature, I chose to add another spawnflag BIDIR_IN_DOWN, which will make the door ignore a trigger from the wrong side while closing.

New version:

http://paste.debian.net/24926/
http://rear.endoftheinternet.org/~blub/nexfiles/?page=file&file=e0d904aa3c512db972f6df4e676e1746
[Tue Aug 5 2008] [00:15:01] <Ronan`> RoKenn, you're an evil person :P
Image
RoKenn
Alien
 
Posts: 141
Joined: Wed Apr 25, 2007 10:25 pm

Postby RoKenn » Mon Jan 12, 2009 10:57 pm

Minipatch (just improve the entity description):

http://paste.debian.net/25838/
[Tue Aug 5 2008] [00:15:01] <Ronan`> RoKenn, you're an evil person :P
Image
RoKenn
Alien
 
Posts: 141
Joined: Wed Apr 25, 2007 10:25 pm

Previous

Return to Nexuiz - Editing

Who is online

Users browsing this forum: No registered users and 1 guest

cron