codemp/game/surfaceflags.h File Reference

Go to the source code of this file.

Defines

#define CONTENTS_SOLID   0x00000001
#define CONTENTS_LAVA   0x00000002
#define CONTENTS_WATER   0x00000004
#define CONTENTS_FOG   0x00000008
#define CONTENTS_PLAYERCLIP   0x00000010
#define CONTENTS_MONSTERCLIP   0x00000020
#define CONTENTS_BOTCLIP   0x00000040
#define CONTENTS_SHOTCLIP   0x00000080
#define CONTENTS_BODY   0x00000100
#define CONTENTS_CORPSE   0x00000200
#define CONTENTS_TRIGGER   0x00000400
#define CONTENTS_NODROP   0x00000800
#define CONTENTS_TERRAIN   0x00001000
#define CONTENTS_LADDER   0x00002000
#define CONTENTS_ABSEIL   0x00004000
#define CONTENTS_OPAQUE   0x00008000
#define CONTENTS_OUTSIDE   0x00010000
#define CONTENTS_INSIDE   0x10000000
#define CONTENTS_SLIME   0x00020000
#define CONTENTS_LIGHTSABER   0x00040000
#define CONTENTS_TELEPORTER   0x00080000
#define CONTENTS_ITEM   0x00100000
#define CONTENTS_NOSHOT   0x00200000
#define CONTENTS_DETAIL   0x08000000
#define CONTENTS_TRANSLUCENT   0x80000000
#define SURF_SKY   0x00002000
#define SURF_SLICK   0x00004000
#define SURF_METALSTEPS   0x00008000
#define SURF_FORCEFIELD   0x00010000
#define SURF_NODAMAGE   0x00040000
#define SURF_NOIMPACT   0x00080000
#define SURF_NOMARKS   0x00100000
#define SURF_NODRAW   0x00200000
#define SURF_NOSTEPS   0x00400000
#define SURF_NODLIGHT   0x00800000
#define SURF_NOMISCENTS   0x01000000
#define MATERIAL_BITS   5
#define MATERIAL_MASK   0x1f
#define MATERIAL_NONE   0
#define MATERIAL_SOLIDWOOD   1
#define MATERIAL_HOLLOWWOOD   2
#define MATERIAL_SOLIDMETAL   3
#define MATERIAL_HOLLOWMETAL   4
#define MATERIAL_SHORTGRASS   5
#define MATERIAL_LONGGRASS   6
#define MATERIAL_DIRT   7
#define MATERIAL_SAND   8
#define MATERIAL_GRAVEL   9
#define MATERIAL_GLASS   10
#define MATERIAL_CONCRETE   11
#define MATERIAL_MARBLE   12
#define MATERIAL_WATER   13
#define MATERIAL_SNOW   14
#define MATERIAL_ICE   15
#define MATERIAL_FLESH   16
#define MATERIAL_MUD   17
#define MATERIAL_BPGLASS   18
#define MATERIAL_DRYLEAVES   19
#define MATERIAL_GREENLEAVES   20
#define MATERIAL_FABRIC   21
#define MATERIAL_CANVAS   22
#define MATERIAL_ROCK   23
#define MATERIAL_RUBBER   24
#define MATERIAL_PLASTIC   25
#define MATERIAL_TILES   26
#define MATERIAL_CARPET   27
#define MATERIAL_PLASTER   28
#define MATERIAL_SHATTERGLASS   29
#define MATERIAL_ARMOR   30
#define MATERIAL_COMPUTER   31
#define MATERIAL_LAST   32
#define MATERIALS


Define Documentation

#define CONTENTS_ABSEIL   0x00004000
 

Definition at line 24 of file surfaceflags.h.

#define CONTENTS_BODY   0x00000100
 

Definition at line 18 of file surfaceflags.h.

Referenced by BG_FighterUpdate(), BG_VehTraceFromCamPos(), CG_CheckThirdPersonAlpha(), CG_PredictPlayerState(), ClientSpawn(), ClientThink_real(), CreateShield(), Eject(), finish_spawning_turretG2(), func_wait_return_solid(), G_RunItem(), NAV_AvoidCollision(), NAV_Bypass(), NAV_ClearPathToPoint(), NAV_MoveToGoal(), NAV_TestBestNode(), NAVNEW_AvoidCollision(), NAVNEW_TestNodeConnectionBlocked(), NPC_Begin(), NPC_BSJedi_FollowLeader(), NPC_ClearPathToGoal(), PmoveSingle(), ShieldGoSolid(), SolidifyOwner(), SP_misc_turret(), SpectatorThink(), target_laser_think(), TryUse(), turret_base_spawn_top(), WP_SaberPositionUpdate(), and WP_VehCheckTraceFromCamPos().

#define CONTENTS_BOTCLIP   0x00000040
 

Definition at line 16 of file surfaceflags.h.

Referenced by Jedi_CheckFlipEvasions(), NAV_Bypass(), NAV_CheckAhead(), NAV_ClearPathToPoint(), NAV_MoveToGoal(), NAV_StackedCanyon(), NAV_Steer(), NAV_TestBestNode(), NAVNEW_PushBlocker(), NAVNEW_SidestepBlocker(), NAVNEW_TestNodeConnectionBlocked(), NPC_BSJedi_FollowLeader(), NPC_ClearPathToGoal(), NPC_MoveDirClear(), and waypoint_testDirection().

#define CONTENTS_CORPSE   0x00000200
 

Definition at line 19 of file surfaceflags.h.

Referenced by Blocked_Mover(), CorpsePhysics(), maglock_link(), player_die(), target_laser_think(), and TryUse().

#define CONTENTS_DETAIL   0x08000000
 

Definition at line 35 of file surfaceflags.h.

#define CONTENTS_FOG   0x00000008
 

Definition at line 13 of file surfaceflags.h.

Referenced by NPC_CheckEnemyStealth().

#define CONTENTS_INSIDE   0x10000000
 

Definition at line 28 of file surfaceflags.h.

#define CONTENTS_ITEM   0x00100000
 

Definition at line 33 of file surfaceflags.h.

Referenced by TryUse().

#define CONTENTS_LADDER   0x00002000
 

Definition at line 23 of file surfaceflags.h.

Referenced by ClientThink_real(), NPC_GetMoveDirection(), and NPC_GetMoveDirectionAltRoute().

#define CONTENTS_LAVA   0x00000002
 

Definition at line 11 of file surfaceflags.h.

Referenced by G_SetClientSound(), P_WorldEffects(), and PM_HoverTrace().

#define CONTENTS_LIGHTSABER   0x00040000
 

Definition at line 31 of file surfaceflags.h.

Referenced by DownedSaberThink(), EWebFire(), G_MissileImpact(), ImperialProbe_FireBlaster(), Mark1_FireBlaster(), Mark1_FireRocket(), Mark1Dead_FireBlaster(), Mark1Dead_FireRocket(), Mark2_FireBlaster(), NPC_BSGM_Attack(), Remote_Fire(), saberBackToOwner(), saberFirstThrown(), saberKnockOutOfHand(), SaberUpdateSelf(), Seeker_Fire(), Sentry_Fire(), thrownSaberTouch(), WP_FireBlasterMissile(), WP_FireEmplacedMissile(), WP_FireGenericBlasterMissile(), WP_FireTurretMissile(), WP_FireVehicleWeapon(), WP_SaberInitBladeData(), and WP_SaberPositionUpdate().

#define CONTENTS_MONSTERCLIP   0x00000020
 

Definition at line 15 of file surfaceflags.h.

Referenced by ClientThink_real(), finish_spawning_turretG2(), Jedi_CheckFlipEvasions(), NAV_ClearPathToPoint(), NAV_TestBestNode(), NAVNEW_TestNodeConnectionBlocked(), and waypoint_testDirection().

#define CONTENTS_NODROP   0x00000800
 

Definition at line 21 of file surfaceflags.h.

Referenced by CG_AddFragment(), G_RunItem(), player_die(), and SiegeItemThink().

#define CONTENTS_NOSHOT   0x00200000
 

Definition at line 34 of file surfaceflags.h.

#define CONTENTS_OPAQUE   0x00008000
 

Definition at line 25 of file surfaceflags.h.

Referenced by CG_BracketEntity(), and G_ClearLOS().

#define CONTENTS_OUTSIDE   0x00010000
 

Definition at line 26 of file surfaceflags.h.

#define CONTENTS_PLAYERCLIP   0x00000010
 

Definition at line 14 of file surfaceflags.h.

Referenced by CreateShield(), finish_spawning_turretG2(), and G_EstimateCamPos().

#define CONTENTS_SHOTCLIP   0x00000080
 

Definition at line 17 of file surfaceflags.h.

Referenced by CreateShield(), finish_spawning_turretG2(), and W_TraceSetStart().

#define CONTENTS_SLIME   0x00020000
 

Definition at line 30 of file surfaceflags.h.

Referenced by G_SetClientSound(), P_WorldEffects(), and PM_HoverTrace().

#define CONTENTS_SOLID   0x00000001
 

Definition at line 10 of file surfaceflags.h.

Referenced by BG_VehTraceFromCamPos(), CG_AddFragment(), CG_EntityEvent(), CG_SaberClashFlare(), ClientCommand(), ClientThink_real(), G_PortalifyEntities(), G_RecursiveConnection(), ItemUse_Sentry(), Jedi_CheckFlipEvasions(), NAVNEW_TestNodeConnectionBlocked(), pas_think(), Pickup_Powerup(), ShieldGoSolid(), SiegeItemUse(), SP_emplaced_gun(), SP_misc_ammo_floor_unit(), SP_misc_model_ammo_power_converter(), SP_misc_model_health_power_converter(), SP_misc_model_shield_power_converter(), SP_misc_shield_floor_unit(), SP_misc_siege_item(), target_laser_think(), TryUse(), use_wall(), ValidBloodPool(), waypoint_testDirection(), and WP_VehCheckTraceFromCamPos().

#define CONTENTS_TELEPORTER   0x00080000
 

Definition at line 32 of file surfaceflags.h.

#define CONTENTS_TERRAIN   0x00001000
 

Definition at line 22 of file surfaceflags.h.

Referenced by CG_EntityEvent(), SiegeItemUse(), SP_misc_siege_item(), and SP_terrain().

#define CONTENTS_TRANSLUCENT   0x80000000
 

Definition at line 36 of file surfaceflags.h.

#define CONTENTS_TRIGGER   0x00000400
 

Definition at line 20 of file surfaceflags.h.

Referenced by CorpsePhysics(), FinishSpawningItem(), G_Dismember(), G_FindDoorTrigger(), G_FindTeams(), G_MoverTouchPushTriggers(), G_SpecialSpawnItem(), G_TouchTriggers(), InitTrigger(), LaunchItem(), MakeDeadSaber(), multi_trigger_run(), PlaceShield(), RespawnItem(), saberKnockDown(), SiegeItemUse(), SP_info_jedimaster_start(), SP_misc_holocron(), SP_misc_siege_item(), SP_trigger_hurt(), SP_trigger_hyperspace(), SP_trigger_shipboundary(), SP_trigger_space(), SP_waypoint(), SP_waypoint_small(), SpawnPlatTrigger(), and Think_SpawnNewDoorTrigger().

#define CONTENTS_WATER   0x00000004
 

Definition at line 12 of file surfaceflags.h.

Referenced by DoImpact(), NPC_CheckEnemyStealth(), and PM_HoverTrace().

#define MATERIAL_ARMOR   30
 

Definition at line 84 of file surfaceflags.h.

#define MATERIAL_BITS   5
 

Definition at line 51 of file surfaceflags.h.

#define MATERIAL_BPGLASS   18
 

Definition at line 72 of file surfaceflags.h.

#define MATERIAL_CANVAS   22
 

Definition at line 76 of file surfaceflags.h.

Referenced by CG_EntityEvent().

#define MATERIAL_CARPET   27
 

Definition at line 81 of file surfaceflags.h.

Referenced by CG_EntityEvent().

#define MATERIAL_COMPUTER   31
 

Definition at line 85 of file surfaceflags.h.

#define MATERIAL_CONCRETE   11
 

Definition at line 65 of file surfaceflags.h.

#define MATERIAL_DIRT   7
 

Definition at line 61 of file surfaceflags.h.

Referenced by CG_EntityEvent().

#define MATERIAL_DRYLEAVES   19
 

Definition at line 73 of file surfaceflags.h.

#define MATERIAL_FABRIC   21
 

Definition at line 75 of file surfaceflags.h.

Referenced by CG_EntityEvent().

#define MATERIAL_FLESH   16
 

Definition at line 70 of file surfaceflags.h.

#define MATERIAL_GLASS   10
 

Definition at line 64 of file surfaceflags.h.

#define MATERIAL_GRAVEL   9
 

Definition at line 63 of file surfaceflags.h.

Referenced by CG_EntityEvent().

#define MATERIAL_GREENLEAVES   20
 

Definition at line 74 of file surfaceflags.h.

#define MATERIAL_HOLLOWMETAL   4
 

Definition at line 58 of file surfaceflags.h.

Referenced by CG_EntityEvent().

#define MATERIAL_HOLLOWWOOD   2
 

Definition at line 56 of file surfaceflags.h.

Referenced by CG_EntityEvent().

#define MATERIAL_ICE   15
 

Definition at line 69 of file surfaceflags.h.

#define MATERIAL_LAST   32
 

Definition at line 86 of file surfaceflags.h.

#define MATERIAL_LONGGRASS   6
 

Definition at line 60 of file surfaceflags.h.

Referenced by CG_EntityEvent().

#define MATERIAL_MARBLE   12
 

Definition at line 66 of file surfaceflags.h.

#define MATERIAL_MASK   0x1f
 

Definition at line 52 of file surfaceflags.h.

#define MATERIAL_MUD   17
 

Definition at line 71 of file surfaceflags.h.

Referenced by CG_EntityEvent().

#define MATERIAL_NONE   0
 

Definition at line 54 of file surfaceflags.h.

#define MATERIAL_PLASTER   28
 

Definition at line 82 of file surfaceflags.h.

#define MATERIAL_PLASTIC   25
 

Definition at line 79 of file surfaceflags.h.

Referenced by CG_EntityEvent().

#define MATERIAL_ROCK   23
 

Definition at line 77 of file surfaceflags.h.

#define MATERIAL_RUBBER   24
 

Definition at line 78 of file surfaceflags.h.

Referenced by CG_EntityEvent().

#define MATERIAL_SAND   8
 

Definition at line 62 of file surfaceflags.h.

Referenced by CG_EntityEvent().

#define MATERIAL_SHATTERGLASS   29
 

Definition at line 83 of file surfaceflags.h.

#define MATERIAL_SHORTGRASS   5
 

Definition at line 59 of file surfaceflags.h.

Referenced by CG_EntityEvent().

#define MATERIAL_SNOW   14
 

Definition at line 68 of file surfaceflags.h.

Referenced by CG_EntityEvent().

#define MATERIAL_SOLIDMETAL   3
 

Definition at line 57 of file surfaceflags.h.

Referenced by CG_EntityEvent().

#define MATERIAL_SOLIDWOOD   1
 

Definition at line 55 of file surfaceflags.h.

Referenced by CG_EntityEvent().

#define MATERIAL_TILES   26
 

Definition at line 80 of file surfaceflags.h.

#define MATERIAL_WATER   13
 

Definition at line 67 of file surfaceflags.h.

#define MATERIALS
 

Definition at line 90 of file surfaceflags.h.

#define SURF_FORCEFIELD   0x00010000
 

Definition at line 41 of file surfaceflags.h.

Referenced by G_MissileImpact().

#define SURF_METALSTEPS   0x00008000
 

Definition at line 40 of file surfaceflags.h.

Referenced by G_MissileImpact().

#define SURF_NODAMAGE   0x00040000
 

Definition at line 42 of file surfaceflags.h.

#define SURF_NODLIGHT   0x00800000
 

Definition at line 47 of file surfaceflags.h.

#define SURF_NODRAW   0x00200000
 

Definition at line 45 of file surfaceflags.h.

#define SURF_NOIMPACT   0x00080000
 

Definition at line 43 of file surfaceflags.h.

Referenced by CG_AddSaberBlade(), G_RunMissile(), and WP_DisruptorAltFire().

#define SURF_NOMARKS   0x00100000
 

Definition at line 44 of file surfaceflags.h.

#define SURF_NOMISCENTS   0x01000000
 

Definition at line 48 of file surfaceflags.h.

#define SURF_NOSTEPS   0x00400000
 

Definition at line 46 of file surfaceflags.h.

#define SURF_SKY   0x00002000
 

Definition at line 38 of file surfaceflags.h.

#define SURF_SLICK   0x00004000
 

Definition at line 39 of file surfaceflags.h.