[Help] func_door lip
Is it possible to modify a func_door entity's lip value?
|
Re: [Help] func_door lip
If you find its offset, then it's possible.
What does lip exactly do ? Do you have a default map example with a door ? |
Re: [Help] func_door lip
1 Attachment(s)
when you got a 100 wide door, and you open it with lip=0, then it will slide to the left (or right) with 100 (eg it opens fully). If you set lip to 50, it will only slide 100-50=50 to the left, and it will open just half, or if you set it -100 then the door will go away :D
Example map with one door in it (and a light, and player_start) the door's lip is set to 50 (you can see, its not opens fully) wait (delay before close), is set to 2, and speed (moving speed) is 100 (only for half-life i think) |
Re: [Help] func_door lip
Since the m_flLip seems to be used at spawn only for func_door entities, I guess you can simply alter/add the keyvalue "lip" with the value you want at map start when the entities are spawned. ( using pnf_keyvalue() for FM_KeyValue forward I guess )
|
Re: [Help] func_door lip
Quote:
|
Re: [Help] func_door lip
And it only affect m_vecPosition2, may be you could just alter that last one for your needs.
What you mean "admin doors", how it is related to lip value ? -Edit- m_flLip is 32 (on windows), linux diff could be 4 or 5 i dunno. You can alter it before the ent spawn, or directly in spawn (pre-hook) using set_pdata_float(iDoor, m_flLip, FloatValue, LinuxDiff) If you want to find linux diff, run this on linux server and look at server console at map start : PHP Code:
Code:
const m_toggle_state = 28Code:
class CBaseToggle : public CBaseAnimating |
Re: [Help] func_door lip
I don't understand "(I want an admins only door ;)
In-game ; you could try to find the entity index, then altering the keyvalue "lip" (DispathKeyValue) and respawning it. (DispatchSpawn) What are you trying to do exactly ? |
Re: [Help] func_door lip
I have a map where is a room with lots of cool stuff in it (ammo, health, etc) But for joke, the map maker set the room's door's lip high, so the door not opens, just a bit (like it is broken), so me (and other admins) want to go inside :D, but i dont want to leave that door open, because then everyone get there in, and then it will be no more fun to go inside. So i want an admin command "door_open" and "door_close" what sets the lip to 0 and back to 100
|
Re: [Help] func_door lip
Quote:
|
| All times are GMT -4. The time now is 13:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.