Raised This Month: $ Target: $400
 0% 

How to get the LocationName ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 05-02-2011 , 03:43   How to get the LocationName ?
Reply With Quote #1

Look at the Half Life game event Location
How can I get all the LocationName ?
__________________
QQ:116268742
K.K.Lv is offline
Send a message via MSN to K.K.Lv
SonicSonedit
Veteran Member
Join Date: Nov 2008
Location: Silent Hill
Old 05-02-2011 , 04:23   Re: How to get the LocationName ?
Reply With Quote #2

CZ only.
__________________

SonicSonedit is offline
reinert
Veteran Member
Join Date: Feb 2007
Old 05-02-2011 , 11:24   Re: How to get the LocationName ?
Reply With Quote #3

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.
reinert is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-02-2011 , 11:40   Re: How to get the LocationName ?
Reply With Quote #4

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.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
SonicSonedit
Veteran Member
Join Date: Nov 2008
Location: Silent Hill
Old 05-02-2011 , 12:54   Re: How to get the LocationName ?
Reply With Quote #5

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

SonicSonedit is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-02-2011 , 14:23   Re: How to get the LocationName ?
Reply With Quote #6

Such plugins already exists.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 05-03-2011 , 13:46   Re: How to get the LocationName ?
Reply With Quote #7

Quote:
Originally Posted by ConnorMcLeod View Post
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 ?  
__________________
QQ:116268742

Last edited by K.K.Lv; 05-03-2011 at 13:51.
K.K.Lv is offline
Send a message via MSN to K.K.Lv
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-03-2011 , 14:11   Re: How to get the LocationName ?
Reply With Quote #8

Not sure if those name set zones or are only there to inform bots.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Reply



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:27.


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