Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Mod] Antiwall

#1
Mod that adds "dynamic" wall entity. It can be useful if you want wall (or floor) which can appear or disappear when activated by trigger. Also, alpha-channel of this entity depends on distance to player. Maybe this will be useful if someone will decide to make Antichamber-like puzzle game based on Xonotic (actually, I'm trying to).
Source code.
Video.
Compiled map and QC code (updated)
BTW, can water with reflections be visible through warpzone? I understand that this can be an impact on performance, just asking.
Reply

#2
Very interesting concept, nice work!
The code is a good start, there are some tweaks I would make (like the use of cvar_set... could probably be a field variable instead, e.g. self.antiwall_deactivated).
[Image: 230.jpg]
Reply

#3
Oh, nice, Antichamber has some nice mechanics, nice to see that implemented and get opened some new possibilities Big Grin. Nice job.
erebus minstanex erebus Angel
Reply

#4
Thank you all. Little update: removed usage of cvars, fixed weird bug, added ability of making several antiwalls work separately. So, now they can be used for rebuilding walls around player (example).
Probably there are some unneeded variable assignments, but at least it works now. Previously there were situations where self.solid on server and client had different value.
Reply

#5
By the way, there's an in-game video recording function, that can export to either .avi or .ogv (latter being much smaller);
Easiest way is to bind a key to the cvar toggle, for example: bind X "toggle cl_capturevideo", you can then press X at the start, and again when you're done.
The format can be handled with one of the cl_capturevideo* cvars (you can press tab instead of typing * to see the full list of cvars in console).

Nice work on the mod so far, should look into getting it merged into the main game once it's a bit more polished.
[Image: 230.jpg]
Reply

#6
I know about video recording function, just wasn't able to find suitable parameters previously (now figured out that AVI recording eats much less CPU).
About merging: I think I'd better create new entities, something like func_clientantiwall and func_clientantiillusionary (weird names, not sure about them), and separate their code from code of func_clientwall and func_clientillusionarry to not affect them. BTW, is it possible to give entity alternative short name in NetRadiant? A kind of alias.
Also, not sure how this would work in multiplayer. Needs testing.
Reply

#7
I have maxed-out Ogg Theora settings posted on the blog here: http://xonotic.org/posts/2014/capturing-...c-moments/ (under "The Setup") if you're interested.
asyyy^ | are you releated to chuck norris?
Reply

#8
Indeed, would be good to separate them from the standard wall code.
I don't know of any aliases for NetRadiant, but one trick would be to copy the func_clientwall stuff in netradiant/install/xonotic.game/data/entities.ent
This would allow you to use the antiwall from right click menu and any other places listing available entities.

AVI recording may be quicker (useful for realtime recording), but the resulting file will be huge.
[Image: 230.jpg]
Reply

#9
(04-21-2015, 07:23 AM)Antibody Wrote: I have maxed-out Ogg Theora settings posted on the blog here: http://xonotic.org/posts/2014/capturing-...c-moments/ (under "The Setup") if you're interested.
Didn't help much, but anyway thank you.
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Source code for Peach Mod daveblanchard 4 2,955 03-30-2021, 10:34 AM
Last Post: LegendGuard
  A Garry's Mod / sandbox system MirceaKitsune 20 40,060 01-05-2019, 10:52 PM
Last Post: 3agle427
  Singleplayer Story Mod darthlukan 3 5,789 08-11-2011, 04:25 PM
Last Post: ThePWTULN

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-