AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Solved [Request] Finding the exact coordinate of trigger_teleport in a map (https://forums.alliedmods.net/showthread.php?t=339984)

Snake. 10-15-2022 10:52

[Request] Finding the exact coordinate of trigger_teleport in a map
 
I can find the coordinate of destination with bspedit but can't find trigger_teleport. The purpose of this is that there are a collection of maps of a mod, where there are secret teleport points and i need to find its exact location with coordinates. It'd be cool to be able to type a command which prints all locations of trigger_teleports in current map to the console

Snake. 11-03-2022 14:21

Re: [Request] Finding the exact coordinate of trigger_teleport in a map
 
bump, is it possible at least?

DJEarthQuake 11-03-2022 18:08

Re: [Request] Finding the exact coordinate of trigger_teleport in a map
 
spec_pos in console when playing.

Here's an Amxx script with CVAR. Change "entity_coord" to trigger_teleport.

Natsheh 11-03-2022 18:26

Re: [Request] Finding the exact coordinate of trigger_teleport in a map
 
trigger_teleport is a brush entity, use get_brush_entity_origin from engine to retrieve the origin.

Snake. 11-04-2022 10:54

Re: [Request] Finding the exact coordinate of trigger_teleport in a map
 
Quote:

Originally Posted by DJEarthQuake (Post 2792079)
Nano will get into BSP to see it exactly. spec_pos in console when playing.

I couldn't understand properly. Isn't that command to show the coordinate of player?

Snake. 11-04-2022 10:56

Re: [Request] Finding the exact coordinate of trigger_teleport in a map
 
Quote:

Originally Posted by Natsheh (Post 2792081)
trigger_teleport is a brush entity, use get_brush_entity_origin from engine to retrieve the origin.

I don't know how to use it. It it possible for you to write a code for it?

DJEarthQuake 11-06-2022 09:15

Re: [Request] Finding the exact coordinate of trigger_teleport in a map
 
Code:
    new Float:fOrigin[3]     get_brush_entity_origin(ent, fOrigin)     console_print(id, "%f|%f|%f",fOrigin[0], fOrigin[1], fOrigin[2])

I've updated previous post since it does not show looking inside file.

Snake. 11-06-2022 10:50

Re: [Request] Finding the exact coordinate of trigger_teleport in a map
 
Quote:

Originally Posted by DJEarthQuake (Post 2792254)

Thanks! I could find the teleport points with the help of beams but coordinates in the console seem incorrect because all of them were somewhere else dark out of the map:

-146.000000|3518.500000|126.000000
Found a trigger_teleport: numbered 31
-574.500000|3747.500000|63.500000
2nd trigger_teleport: numbered 56
-350.500000|3737.500000|-59.500000
3rd trigger_teleport: numbered 70
-535.500000|3037.500000|124.500000
Fourth trigger_teleport: numbered 75
-506.500000|3696.500000|183.500000
Fifth trigger_teleport: numbered 86
There might be more trigger_teleport.
********************************************* *************

DJEarthQuake 11-06-2022 12:38

Re: [Request] Finding the exact coordinate of trigger_teleport in a map
 
Welcome. It could be leading to no man's land. Those odd places reflect how map was made and maybe not ideally. Validate the coords with typing spec_pos once you get there.


All times are GMT -4. The time now is 23:57.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.