[SOLVED] Problem with setting new origin for func_clientwall - Printable Version +- Xonotic Forums (https://forums.xonotic.org) +-- Forum: Creating & Contributing (https://forums.xonotic.org/forumdisplay.php?fid=10) +--- Forum: Xonotic - Development (https://forums.xonotic.org/forumdisplay.php?fid=12) +--- Thread: [SOLVED] Problem with setting new origin for func_clientwall (/showthread.php?tid=5436) |
Problem with setting new origin for func_clientwall - Penguinum-tea - 04-13-2015 Hello. Another noobish question about entities and QuakeC. I'm trying to modify func_clientwall for my needs. I need it to be moved to another location when activated by trigger. At first I've tried to change origin of this entity somewhere in its code, without using triggers. For example, in client/wall.qc: Code: if(f & 2) RE: Problem with setting new origin for func_clientwall - Mario - 04-13-2015 So, you want a non-solid wall to move when triggered? what you might want instead is a func_door with a shader setting the nonsolid surfaceparm. For example, if you have the texture textures/map_mapname/wall.tga, then the shader would look something like this: Code: textures/map_mapname/wall RE: Problem with setting new origin for func_clientwall - Penguinum-tea - 04-13-2015 (04-13-2015, 09:07 AM)Mario Wrote: So, you want a non-solid wall to move when triggered? what you might want instead is a func_door with a shader setting the nonsolid surfaceparm. No, it's different. I want solid entity to be removed when activated by trigger and to appear again when activated by another trigger. What I've planned to do is to instantly move it far away (actually, just outside the skybox), but making it invisible and non-soid when activated is nice too. Maybe I should try this way. To explain better, there is video: http://www.youtube.com/watch?v=YB5dMcWmCmk At 0:07 player jumps and "floor" disappears. When player will come here again this floor will be here again. This can be done using, for example, this thing I'm trying to do. RE: Problem with setting new origin for func_clientwall - Mario - 04-13-2015 A door may still do the trick here, just without the non-solid shader. You're able to toggle their status rather than return after a delay, and also to set their distance/speed. I won't go into the details here though, as NetRadiant does a good job of that already. RE: Problem with setting new origin for func_clientwall - Penguinum-tea - 04-13-2015 Oh, thanks, didn't think about delay. Yes, door with delay and big movement speed can do the trick. RE: Problem with setting new origin for func_clientwall - SPLAT - 04-13-2015 damn you guys so smart |