mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-04-24 21:15:22 +00:00
Unified MA
mask types
This commit is contained in:
parent
1b19f9b485
commit
d1cf884bdf
3 changed files with 57 additions and 60 deletions
4
Classic/scripts/autoexec/zDarkTigerStats.cs
Normal file → Executable file
4
Classic/scripts/autoexec/zDarkTigerStats.cs
Normal file → Executable file
|
|
@ -5759,7 +5759,7 @@ function GameConnection::dtMessage(%this,%message,%sfx,%bypass){
|
|||
|
||||
function rayTest(%targetObject,%dis){
|
||||
if(isObject(%targetObject)){
|
||||
%mask = $TypeMasks::StaticShapeObjectType | $TypeMasks::InteriorObjectType | $TypeMasks::TerrainObjectType;
|
||||
%mask = $TypeMasks::StaticShapeObjectType | $TypeMasks::InteriorObjectType | $TypeMasks::TerrainObjectType | $TypeMasks::ForceFieldObjectType | $TypeMasks::VehicleObjectType;
|
||||
%rayStart = %targetObject.getWorldBoxCenter();
|
||||
%rayEnd = VectorAdd(%rayStart,"0 0" SPC ((%dis+1.15) * -1));
|
||||
%ground = !ContainerRayCast(%rayStart, %rayEnd, %mask, %targetObject);
|
||||
|
|
@ -5770,7 +5770,7 @@ function rayTest(%targetObject,%dis){
|
|||
}
|
||||
function rayTestDis(%targetObject){
|
||||
if(isObject(%targetObject)){
|
||||
%mask = $TypeMasks::StaticShapeObjectType | $TypeMasks::InteriorObjectType | $TypeMasks::TerrainObjectType;
|
||||
%mask = $TypeMasks::StaticShapeObjectType | $TypeMasks::InteriorObjectType | $TypeMasks::TerrainObjectType | $TypeMasks::ForceFieldObjectType | $TypeMasks::VehicleObjectType;
|
||||
%rayStart = %targetObject.getWorldBoxCenter();
|
||||
%rayEnd = VectorAdd(%rayStart,"0 0" SPC -5000);
|
||||
%ray = ContainerRayCast(%rayStart, %rayEnd, %mask, %targetObject);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue