.qc (dot qc) - the group for quake c coders of all denominations. If you make quake one mods and write code in quake c, join our group! I'll try to answer any quake c questions - please post your inquiry in the forums...
|Portal proof wall||Locked|
numbersix quake-c coder++
|Oct 10 2012 Anchor|
This post is for map editing with the "Quake Portal Mod": Moddb.com
"How do I make a wall where you cant open a portal?"
This entity will block portals:
void() ass_portalproof =
As coded in this fragment of "void(entity own, entity hit, vector org, vector plane) T_PortalSpawn":
What is ass_portalproof ?
This entity is just like a func_wall. So what is a func_wall ?
A func_wall is an entity that looks just like a solid wall and functions just like one. iD made it for walls that appear in single player or deathmatch and not the other.
For an example, load e1m7 (house of cthon) in sp and dm. Notice the spawn platforms (along the upper run to either side of the electrode lowering buttons) in dm that dont appear in single player. Those are func_wall with "spawnflags" "1792" (spawnflags control for all entities what game difficulty they appear in - 1792 is only appearing in deathmatch.)
So, ass_portalproof looks and works just like a solid wall. Except that the portal forming code above detects it as portal proof.
How would you make a portal proof wall?
Well if you have the custom entity set for this mod, you make it just like you make a func_wall.
1. Make the wall with the appearance and location in the level you desire
or alternately at step 3 (if there is no custom entity set for your editor)
3. Make entity a func_wall (this should be in the standard entity set for a quake 1 map editor.)
Compile the map and load it in the mod - you should now have a portal proof wall.
|Jan 17 2013 Anchor|
You can also use NOPORTAL texture on brush that you want them to look as portal proof for example open portal_gun/src/mapspellet.map in radiant editor
Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.