wiremod / wire-extras

Community Contributed Wire Extras Repository (formerly UWSVN). These are addons which may be of use to wiremodders but do not undergo the same level of critique that the official repos do.
Apache License 2.0
83 stars 67 forks source link

Extended HS Ranger, now w/ trace masking! #126

Closed DerelictDrone closed 10 months ago

DerelictDrone commented 10 months ago

Now supports masks & collision group filters

Trace settings: Mem[10] sets "extended info" on or off Mem[11] sets collision group mask Mem[12] sets mask Mem[13] sets the Entity to check NPC disposition against, by the entity's ID

Trace info: Mem[16] is trace.Contents Mem[17] is trace.SurfaceFlags Mem[18] is trace.MatType Mem[19] is trace.Entity:EntIndex() Mem[20] is trace.Entity:IsNPC() If extended info is ON Mem[21] is trace.Entity:GetMaxHealth() Mem[22] is trace.Entity:Health() Mem[23] is the disposition of the NPC to the entity in Mem[13]

Example of a camera that can only see things that block bullets AND collide with NPC's (the barrel on the right is nocollided to all but world, the fence can be shot through) gmod_87Nav4pcqL

Example of a camera that can see the NPC's relationships to an entity(in this case, the player) image