09.07.2012, 22:13
Why not just use an actual door, and have them hit a key on their keyboard (KEY_SECONDARY_ATTACK?) to open and close the door, and legitimately move the object. It seems like a REALLY good idea though!
Why not just use an actual door, and have them hit a key on their keyboard (KEY_SECONDARY_ATTACK?) to open and close the door, and legitimately move the object. It seems like a REALLY good idea though!
|
16 would be best, it's the same key for entering vehicles so why not entering other stuff?
You could find the animation from the standard door-walking-in (from the yellow/green/orange arrows at Ammunations and fast food places etc) When the player hits the key near the door, replace the door with a moving one and play the animation! (I think that's how it works in single player too, either that or the door has a 'rigid' variable that is unset when the player enters) Would look nice though! ![]() |
The "entry/exit problem" discussed here is very important i agree making the swing doors for owners and static doors (blocking with same texture) for others seems smart.
|
- Checking if the player is in the area of the door and if they are walking towards it.
|
EDIT 2: Anyone feel like going around re-mapping all the houses with the ones cessil added? :P
|
When the player walks in, you can keep it semi-freeroam style, (still with freeform movement, no teleport) by:
- Checking if the player is in the area of the door and if they are walking towards it. - If they are, Apply the walking+opening door animation and make the player walk through the centre of the object |