how to create func_door_rotating triggered by func_button
so yeah, i want a plugin to create a surf_ski_2 style jail, i got func_door_rotating and func_button to spawn but thats it
PHP Code:
pictures of flags that need to be set: http://www.upload.ee/image/1303364/nupp.PNG http://www.upload.ee/image/1303366/luuk.PNG |
Re: how to create func_door_rotating triggered by func_button
Those flags listed in hammer are stored in EV_INT_spawnflags, it holds a bitsum.
Some bitsums can be found in includes/hlsdk_const.inc at the bottom, just search for func_button and func_door_rotating and you'll find what you need. |
Re: how to create func_door_rotating triggered by func_button
thanks for that, but i still didnt get the door working
and the hlsdk_const.inc didnt have "Touch activates in it" |
Re: how to create func_door_rotating triggered by func_button
It doesn't need to, you just don't set SF_DOOR_USE_ONLY and it's understandable that you can also touch it to open.
The rest, I never needed to create doors so I don't know. |
Re: how to create func_door_rotating triggered by func_button
To understand how works a door, look at the HLSDK, jimaway.
|
Re: how to create func_door_rotating triggered by func_button
more help would be appriciated, im too inexperienced to find out my problem from hlsdk, tho i tried
|
Re: how to create func_door_rotating triggered by func_button
Using a plugin, hooking touch and using Ham_User or force_use.
Without using a plugin, not sure, I guess you will need a trigger entity so when a player touches it, this entity activates the door entity. Something like that. |
Re: how to create func_door_rotating triggered by func_button
i havent even got the door working, how would hooking touch help me? only thing i got moving was the button that should open the door, dont ask me why it started moving (i even had entity spawnflag "SF_BUTTON_DONTMOVE")
|
Re: how to create func_door_rotating triggered by func_button
ok i got the func_door_rotating to work around Z axis ( tho i have entity_set_int(iEntity2, EV_INT_spawnflags, SF_DOOR_ROTATE_X) )
and if i use entity_set_int( iEntity2, EV_INT_movetype, MOVETYPE_PUSH) (the only movetype it works with properly) it crashes the game with fatal error when i get onto the door the error is "Hit a func_door_rotating with no model (models/fakejail/jail_floor.mdl)" i also had same kind of error when i changed func_button to MOVETYPE_PUSH, any ideas? edit: i got the door rotating on X axis with DispatchKeyValue(iEntity2, "spawnflags", "640") instead of setting EV_INT_spawnflags but it looks like only the model is rotating and the solid part is still in the same place, maby thats why i get the error when i touch the top part of the solid, any ideas? more edit: this is what i have now: PHP Code:
id really like to get this to work so please, anyone whos experienced enough HELP meee :3 |
Re: how to create func_door_rotating triggered by func_button
is it possible to make the door and button in valve hammer and just import the .bsp somehow?
|
| All times are GMT -4. The time now is 04:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.