Raised This Month: $ Target: $400
 0% 

func_door_rotating help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bad_Bud
Senior Member
Join Date: Oct 2006
Location: The internet
Old 05-06-2007 , 16:25   func_door_rotating help
Reply With Quote #1

Is it possible to set a rotating door that opens on touch to NOT open on touch, or a rotating door that doesn't open on touch to open on touch?

I'm not looking to use force_use or any hooks, I'm just wondering if this can be done with entity keys, and if so, which ones.
__________________
Bad_Bud is offline
stupok
Veteran Member
Join Date: Feb 2006
Old 05-06-2007 , 16:44   Re: func_door_rotating help
Reply With Quote #2

I haven't played with EntMod for ages, but if my memory serves me, you can just edit the keyvalue targetname to lock and unlock the door. Assign the door a targetname to lock it and remove the targetname to unlock it.
stupok is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 05-07-2007 , 04:24   Re: func_door_rotating help
Reply With Quote #3

You can look into hlsdk_const.inc
Quote:
// func_door, func_water, func_door_rotating, momementary_door
#define SF_DOOR_ROTATE_Y 0
#define SF_DOOR_START_OPEN 1
#define SF_DOOR_ROTATE_BACKWARDS 2
#define SF_DOOR_PASSABLE 8
#define SF_DOOR_ONEWAY 16
#define SF_DOOR_NO_AUTO_RETURN 32
#define SF_DOOR_ROTATE_Z 64
#define SF_DOOR_ROTATE_X 128
#define SF_DOOR_USE_ONLY 256 // Door must be opened by player's use button
#define SF_DOOR_NOMONSTERS 512 // Monster can't open
#define SF_DOOR_SILENT 0x80000000
Basically you need to set/unset SF_DOOR_USE_ONLY spawnflag before entity spawn.
VEN is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:41.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode