Creating a func_door
If you ever played a bhop map, you'll know what I'm trying to do in this plugin. Basically trying to make a func_door, when you touch it it goes down into the ground (the keyvalues I have are correct).
Code:
|
i don't know if you mean to create a func_door_rotating or not, but heres the keyvalues it used:
classname model origin axes distance wait speed onoffmode immediatemode angles rendercolor its been a long time since i've done anything with ents, but try setting all these before spawning it. Most importantly, set origin before spawning it. i believe a door returns to the 0,0,0 origin for the ent, so i'm basically hoping that setting origin before spawning will set the mins/maxs and absmins/absmaxs. If that doesn't work, try setting the mins/maxs and absmins/absmaxs yourself instead of origin. |
change
Code:
Code:
|
Dispatching model and origin seem to work, but I can't get the thing to be solid or act like a func_door. I tried set_size, movetype fly, sold bbox and it sorta worked. When I touch it, it moves up and down about 1 unit really fast, even if it's in the middle of the air. Key value "speed" doesn't affect how fast it goes.
Code:
|
got these values from kz_hop:
Code:
movedir: -0.00, 0.00, -1.00coz brushentities dont have it like pointentities do.. but right now i cant remember how to set it for them :P |
Origin is working fine, it's spawning where I want it.
Here's what a func_door looks like in cg_coldbhop. What's movedir? Code:
{ |
movedir should be the direction and distance to move..
so if the block's height was say 100 units, and movedir was 0 0 -1, it would move 100 units down :) |
I'm pretty sure
Code:
direction = anglesCode:
DispatchKeyValue(ent,"movedir","0 0 -1")Code:
DispatchKeyValue(ent,"movedir","90 0 0")It all works fine, except when I jump onto it. I can touch it and it goes down like I want it, but when I jump onto it, it gives fatal error "Hit func_door with no model (models/bhopbox.mdl)" Code:
|
if angles set the moving direction, how would u spin & flip it around? :)
sry, but i cant help with that error.. never seen anything like that :roll: |
| All times are GMT -4. The time now is 05:02. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.