Open OldFlak opened 2 months ago
Confirmed. Maybe a sprayed zone that converts to a polygon maybe better concept for future
Zones should simply be 3d or 2d shapes. They should be nameable and be connectable with the blobby logic doodahs etc. For simplicity they could probably just be an adjustable polygon in x/z plane with an adjustable height in y (i.e. thickness). Lua commands similar to my (https://forum.game-guru.com/thread/218470#msg2584479) GGC zonelib should then be provided that allow simple checks for player in named zone(s), player entering/leaving zones, entity versions of the same etc.
There is a super efficient point in poly function in my zonelib btw, would be easy enough to convert to C++ or just keep it all in Lua and use the old waypoint system or something similar to store the zones under the covers.
For info GGC zonelib.lua provides the following functions:
PointIsInZone( x, z, zone ) ZonePointIn( x, z ) PlayerIsInZone( zone ) EntityIsInZone( e, zone ) ZonesPlayerIn() ZonesEntityIn( e ) MonitorZoneOn( zone ) MonitorZoneOff( zone ) ZoneMonitorEntityOn( e, zone ) ZoneMonitorEntityOff( e, zone ) RandomPointInZone( zone ) ZoneProcessor( e ) -- this function is to be called periodically from an entities script to -- provide the monitoring
-- these functions only work if monitoring is on PlayerEnteredZone( zone ) PlayerExitedZone( zone ) EntityEnteredZone( e, zone ) EntityExitedZone( e, zone )
Zones should simply be 3d or 2d shapes.
That would be great - the current zones are and have always been finicky at best. They are really only good if left stock size and shape when using them.
@OldFlak I made a MASSIVE zone and triggered a sound to play when the player crosses its border, and it worked from all edges, even the concave edge. Can you try with the latest version and if exists, attach the stock FPM, thanks:
@LeeBamberTGC Verified
Sample Level Image
The NPC will talk between the flags, over the zone, but it will not trigger until you cross the threshold shown in the incredibly sophisticated screenshot diagram.
Changing the boundary points of zones makes them inaccurate.
When a zone has a large coverage area, the zone only triggers when you are near the center of it.
They are also easily crash MAX to desktop when fiddling with them.