Some "new" entities: Text, teleporting, camera, mi


(Erik-Ftn) #1

Hi

I have found the following entities, They seem to work in ET.

This will put any text on a single players/ one teams/ all players screens at the same time.

/*QUAKED target_print (1 0 0) (-8 -8 -8) (8 8 8) redteam blueteam private
"message"	text to print
If "private", only the activator gets the message.  If no checks, all clients get the message.
*/

This will let you teleport:

/*QUAKED misc_teleporter_dest (1 .5 .25) (-32 -32 -24) (32 32 -16)
Teleport destination location point for trigger_teleporter entities.
-------- KEYS --------
angle : direction in which player will look when teleported.
targetname : make the trigger_teleporter point to this.
notfree : when set to 1, entity will not spawn in "Free for all" and "Tournament" modes.
notteam : when set to 1, entity will not spawn in "Teamplay" and "CTF" modes.
notsingle : when set to 1, entity will not spawn in Single Player mode (bot play mode).*/

/*QUAKED target_teleporter (0 .5 0) (-8 -8 -8) (8 8 8)
Activating this will teleport players to the location of the targeted misc_teleporter_dest entity. Unlike trigger_teleport, this entity must be activated by a trigger and does NOT allow client prediction of events.
-------- KEYS --------
targetname : activating trigger points to this.
target : this must point to a misc_teleporter_dest entity.
notfree : when set to 1, entity will not spawn in "Free for all" and "Tournament" modes.
notteam : when set to 1, entity will not spawn in "Teamplay" and "CTF" modes.
notsingle : when set to 1, entity will not spawn in Single Player mode (bot play mode).*/

/*QUAKED trigger_teleport (.5 .5 .5) ?
Touching this will teleport players to the location of the targeted misc_teleporter_dest entity. This entity allows client prediction of events.
-------- KEYS --------
target : this must point to a misc_teleporter_dest entity.
notfree : when set to 1, entity will not spawn in "Free for all" and "Tournament" modes.
notteam : when set to 1, entity will not spawn in "Teamplay" and "CTF" modes.
notsingle : when set to 1, entity will not spawn in Single Player mode (bot play mode).*/

This will let you set up mirrors or cameras/ portals, you also need the correct shaders for this.

Cameras/ portals rtcw tutorial, some tweaking is needed for ET, it works though: (Thanks to Lethal Banana for this link)
http://www.planetwolfenstein.com/tramdesign/tutorials/tut_portalcamera.html

/*QUAKED misc_portal_camera (1 .5 .25) (-8 -8 -8) (8 8 8) SLOWROTATE FASTROTATE 
Portal camera. This camera is used to project its view onto a portal surface in the level through the intermediary of a misc_portal_surface entity. Use the "angles" key or target a target_position or info_notnull entity to set the camera's pointing direction. 
-------- KEYS -------- 
angles: this sets the pitch and yaw aiming angles of the portal camera (default 0 0). Use "roll" key to set roll angle. 
target : point this to a target_position entity to set the camera's pointing direction. 
targetname : a misc_portal_surface portal surface indicator must point to this. 
roll: roll angle of camera. A value of 0 is upside down and 180 is the same as the player's view. 
notfree : when set to 1, entity will not spawn in "Free for all" and "Tournament" modes. 
notteam : when set to 1, entity will not spawn in "Teamplay" and "CTF" modes. 
notsingle : when set to 1, entity will not spawn in Single Player mode (bot play mode). 
-------- SPAWNFLAGS -------- 
SLOWROTATE : makes the portal camera rotate slowly along the roll axis. 
FASTROTATE : makes the portal camera rotate faster along the roll axis. 
-------- NOTES -------- 
Both the setting "angles" key or "targeting a target_position" methods can be used to aim the camera. However, the target_position method is simpler. In both cases, the "roll" key must be used to set the roll angle. If either the SLOWROTATE or FASTROTATE spawnflag is set, then the "roll" value is irrelevant.*/ 

/*QUAKED misc_portal_surface (1 .5 .25) (-8 -8 -8) (8 8 8) 
Portal surface indicator. This will "lock on" the brush face closest to it and identify as a portal. The view displayed on the portal surface is the view of the misc_portal_camera that this entity targets. Also used for mirrors (see Notes). 
-------- KEYS -------- 
target : point this to a misc_portal_camera that "sees" the view you want to display on the portal. 
notfree : when set to 1, entity will not spawn in "Free for all" and "Tournament" modes. 
notteam : when set to 1, entity will not spawn in "Teamplay" and "CTF" modes. 
notsingle : when set to 1, entity will not spawn in Single Player mode (bot play mode). 
-------- NOTES -------- 
The entity must be no farther than 64 units away from the portal surface to lock onto it. To make a mirror, apply the common/mirror shader to the surface, place this entity near it but don't target a misc_portal_camera.*/ 

I guess the text thing, If it works nicely at it seem to, could be used, eg
to create some more adventure type maps, or to have a commander
with overview of a battlefield direct the troops through pushing one of
several commandbuttons. or eg by lighting a big trigger_multiple in a
certain area for a brief time, only the allied engys in that area could get
a specific message /warning.

Erik-Ftn


(hhhmmmmm) #2

They look sweet :drink:
I used the teleport in a sof2 map, but i’m too noob to see how i get them in E.T without rightclicking in my 2d window?


(hhhmmmmm) #3

Doh I got the worst memory ever!
Yeh i put them in the entitys.def and bingo :clap: :banana:


(hummer) #4

Cool! I can port RTCMB now to ET now that there’s teleportation.


(Erik-Ftn) #5

maybe some screenies…

the text:

http://www.splashdamage.com/forums/viewtopic.php?p=49312#49312

the portal:

The pic shows a yellowtainted, angled camera/ portal looking at me firing the smg.


(MrLego) #6

I noticed a problem with teleporters in ET about 3 months ago.

They function correctly - same as Q3 or RTCW, However when I exit the teleporter the player will always move in the direction of the “trigger_teleport”.

The spawnflag “angle” works as far as which direction the player is facing when he exits but his movement is always in the direction towards the trigger.

Has anyone else seen this happen?


(hummer) #7

Yeah… that happened in RTCW too I think.


(radiant) #8

look cool :slight_smile: can u save this as prefab?


(sock) #9

Shame on you for not using the search button!!! :wink:

http://www.splashdamage.com/forums/viewtopic.php?t=3556&highlight=teleporter

Sock
:moo:


(Erik-Ftn) #10

:cool: …hrm… IMHO, I would expect to find known additions to the .def file in the “Documentation / Editor Errors” sticky-thread.

regards


(sock) #11

Probably true. The ET def file was stripped down to the game essentials so new mappers would not get confused with a massive list of entities. Plus I’m sure you felt really good when you discovered hidden/secret features of the game! :wink:

Sock
:moo:


(Erik-Ftn) #12

try this

http://user.tninet.se/~fzo823r/camera_and_mirror.zip