mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-02-23 07:53:35 +00:00
Unified MA
mask types
This commit is contained in:
parent
1b19f9b485
commit
d1cf884bdf
3 changed files with 57 additions and 60 deletions
2
Classic/scripts/autoexec/MidAirDetRep.cs
Normal file → Executable file
2
Classic/scripts/autoexec/MidAirDetRep.cs
Normal file → Executable file
|
|
@ -131,7 +131,7 @@ function maDirect(%client)// tests for direct hit with aoe weapons
|
|||
|
||||
function maRayTestDis(%targetObject)// tests for height of target
|
||||
{
|
||||
%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