tdauth / submarine-warfare

Warcraft III Reforged funmap in which you control your submarine and have to destroy the other submarines.
0 stars 0 forks source link

Calculate correct Z value of the camera by using the local Z offset for every player #136

Open tdauth opened 3 years ago

tdauth commented 3 years ago
native BlzTriggerRegisterPlayerSyncEvent           takes trigger whichTrigger, player whichPlayer, string prefix, boolean fromServer returns event
native BlzSendSyncData                             takes string prefix, string data returns boolean
native BlzGetTriggerSyncPrefix                     takes nothing returns string
native BlzGetTriggerSyncData                       takes nothing returns string
tdauth commented 3 years ago

https://www.hiveworkshop.com/threads/detect-the-actual-z-value-of-the-ground-even-under-water.332500/

tdauth commented 3 years ago

If it works somehow, use it to get the Z at the camera's position not only the target to detect whether there is a cliff and the camera is inside of a cliff. If so, reduce the distance to the target like in all FPS games.