Raised This Month: $12 Target: $400
 3% 

Solved [Request] Finding the exact coordinate of trigger_teleport in a map


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Snake.
Senior Member
Join Date: Jul 2017
Old 10-15-2022 , 10:52   [Request] Finding the exact coordinate of trigger_teleport in a map
Reply With Quote #1

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

Last edited by Snake.; 11-07-2022 at 10:34.
Snake. is offline
Send a message via Skype™ to Snake.
Snake.
Senior Member
Join Date: Jul 2017
Old 11-03-2022 , 14:21   Re: [Request] Finding the exact coordinate of trigger_teleport in a map
Reply With Quote #2

bump, is it possible at least?
Snake. is offline
Send a message via Skype™ to Snake.
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 11-03-2022 , 18:08   Re: [Request] Finding the exact coordinate of trigger_teleport in a map
Reply With Quote #3

spec_pos in console when playing.

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

Last edited by DJEarthQuake; 11-06-2022 at 09:17. Reason: Test
DJEarthQuake is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 11-03-2022 , 18:26   Re: [Request] Finding the exact coordinate of trigger_teleport in a map
Reply With Quote #4

trigger_teleport is a brush entity, use get_brush_entity_origin from engine to retrieve the origin.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Snake.
Senior Member
Join Date: Jul 2017
Old 11-04-2022 , 10:54   Re: [Request] Finding the exact coordinate of trigger_teleport in a map
Reply With Quote #5

Quote:
Originally Posted by DJEarthQuake View Post
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. is offline
Send a message via Skype™ to Snake.
Snake.
Senior Member
Join Date: Jul 2017
Old 11-04-2022 , 10:56   Re: [Request] Finding the exact coordinate of trigger_teleport in a map
Reply With Quote #6

Quote:
Originally Posted by Natsheh View Post
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?
Snake. is offline
Send a message via Skype™ to Snake.
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 11-06-2022 , 09:15   Re: [Request] Finding the exact coordinate of trigger_teleport in a map
Reply With Quote #7

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.
__________________

Last edited by DJEarthQuake; 11-06-2022 at 09:16.
DJEarthQuake is offline
Snake.
Senior Member
Join Date: Jul 2017
Old 11-06-2022 , 10:50   Re: [Request] Finding the exact coordinate of trigger_teleport in a map
Reply With Quote #8

Quote:
Originally Posted by DJEarthQuake View Post
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.
********************************************* *************
Snake. is offline
Send a message via Skype™ to Snake.
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 11-06-2022 , 12:38   Re: [Request] Finding the exact coordinate of trigger_teleport in a map
Reply With Quote #9

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.
__________________
DJEarthQuake is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:26.


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