AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Trying to get origins of the VIP escape zone... (https://forums.alliedmods.net/showthread.php?t=29598)

Geesu 06-08-2006 15:06

Trying to get origins of the VIP escape zone...
 
I thought it would be an entity hardcoded into the map, but I can't find one :/

Anyone have any ideas?

Basic-Master 06-08-2006 15:47

AFAIK it's a "func_escapezone" entity, have you checked that yet?

Geesu 06-08-2006 16:07

weird I assumed it would have been listed in as_oilrig.bsp but it wasn't, i'll search through all entities in game for it, ty :)

v3x 06-08-2006 16:12

Quote:

The func_escapezone was used in escape missions (es maps) which don't exist anymore. Half of the terrorist team had to make it to a escapezone to win the round.

Cheap_Suit 06-08-2006 16:20

Code:
get_brush_entity_origin //engine stocks

Look at Objective Proximity Warning by twistedeuphoria.

Greenberet 06-08-2006 16:30

it is func_vip_safetyzone
you just have to read the cs.fgd ;)

Geesu 06-08-2006 16:33

Well I'm trying to check if an origin would be in that zone, is that what i'd still use ?

Cheap_Suit 06-08-2006 16:38

Yea I think so. Here is an example,

I check if the user in inside the knifezone in my plugin
Code:
check_origin(Origin[3]) {     for(new i = 0; i < MAX_ZONES; ++i)     {         new ZoneSizeX = get_cvar_num("amx_kzsizex")         new ZoneSizeY = get_cvar_num("amx_kzsizey")         new ZoneSizeZ = get_cvar_num("amx_kzsizez") if((g_KnifeZoneOrgins[i][OriginX] - Origin[OriginX] > ZoneSizeX) || (g_KnifeZoneOrgins[i][OriginX] - Origin[OriginX] < -ZoneSizeX) || (g_KnifeZoneOrgins[i][OriginY] - Origin[OriginY] > ZoneSizeY) || (g_KnifeZoneOrgins[i][OriginY] - Origin[OriginY] < -ZoneSizeY)   || (g_KnifeZoneOrgins[i][OriginZ] - Origin[OriginZ] > ZoneSizeZ) || (g_KnifeZoneOrgins[i][OriginZ] - Origin[OriginZ] < -ZoneSizeZ)) {     continue }     return true } return false }


All times are GMT -4. The time now is 16:22.

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