AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to get the LocationName ? (https://forums.alliedmods.net/showthread.php?t=156176)

K.K.Lv 05-02-2011 03:43

How to get the LocationName ?
 
Look at the Half Life game event Location
How can I get all the LocationName ?

SonicSonedit 05-02-2011 04:23

Re: How to get the LocationName ?
 
CZ only.

reinert 05-02-2011 11:24

Re: How to get the LocationName ?
 
But you could check it in DE_ maps, it's like detecting where the player is is he closer to spawn spot or plant and then print message for him, also define A and B plants, by getting the distance from spawn to plant, because mostly the A plant is closer to CT spawn than B is.

ConnorMcLeod 05-02-2011 11:40

Re: How to get the LocationName ?
 
I'm not sure but i think that it is stored in .nav files, dunno how to decode them though.
Anyway, you can hook Location message.

SonicSonedit 05-02-2011 12:54

Re: How to get the LocationName ?
 
It's easier to create your own location system then try to drag the one from CZ into CS.
1) Create text files with locations info: x1-x2/y1-y2/z1-z2/name
2) Create function "get_user_location(id, &location_name, len) which will check player coordinates and return location name
3) Hook SayText & SendAudio to add location name.
4) CZ!

ConnorMcLeod 05-02-2011 14:23

Re: How to get the LocationName ?
 
Such plugins already exists.

K.K.Lv 05-03-2011 13:46

Re: How to get the LocationName ?
 
Quote:

Originally Posted by ConnorMcLeod (Post 1462060)
I'm not sure but i think that it is stored in .nav files, dunno how to decode them though.
Anyway, you can hook Location message.

yes , I have used jim_yang's msghelper module !
so I come here to ask some one that can tell me all of the name sting !

edited:
I opened a .nav file of the map and found something like this
Code:

BackYard
 FrontYard  SideYard  Upstairs  Basement Downstairs  Porch  CTSpawn  Balcony  Foyer  Bathroom  Bedroom  Windows  Sewers ?  


ConnorMcLeod 05-03-2011 14:11

Re: How to get the LocationName ?
 
Not sure if those name set zones or are only there to inform bots.


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

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