I've added a Warp function to my Q3 code. How do add the function to Radiant so I can use it in my maps?
Here's what I added for testing:
// new mod warp
void SP_func_warpMap (gentity_t *ent) {
EXEC_NOW, va( "map addict");
}
Radiant Functions
-
- Posts: 4022
- Joined: Sat Mar 12, 2005 6:24 pm
Originally I wanted to add a function called func_warpMap that I could apply to entities to jump a player to another map.
Since then I have modifed transport_palyer to do it.
Still I would like to add a custom trigger of some type ot Radiant that makes an entity into a map-to-map or server-to-server transporter.
So the question is basically, how do you add custom functions & triggers to Radiant?
Since then I have modifed transport_palyer to do it.
Still I would like to add a custom trigger of some type ot Radiant that makes an entity into a map-to-map or server-to-server transporter.
So the question is basically, how do you add custom functions & triggers to Radiant?
-
- Posts: 4022
- Joined: Sat Mar 12, 2005 6:24 pm
-
- Posts: 4022
- Joined: Sat Mar 12, 2005 6:24 pm
Yep, add the new entity to your baseq3/scripts/entities.def file, something like this:
/*QUAKED func_transport_player (0 .5 .8) ?
Transport a player to another map.
-------- KEYS --------
map : map to transport player to
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).