Garry's Mod
Alien: Isolation - Motion Tracker
How to Track NPCs and Nextbots Separately?
Hi, I just wanted to ask a few things. First off I wanted to ask if it's okay if I'm allowed to edit the lua file like changing the colors of the screen to my liking as well as being able to make some changes to the code(Not re-uploading it)? So, I basically had an idea to edit it to where I can have it track players (light blue) and NPCs (green) separately by using different colored dots (Hope I don't get in trouble for this...), however after testing it, the dots on the motion tracker are still the same color regarding if it's a player or an NPC (even naming players as a different variable ('e') didn't change anything). Another issue I have is that I want to edit it to where I can have it track both NPCs and Nextbots separately as different colored dots. What kind of "BaseClass", "BaseClass.Type", or name ("Is<name>()") would I need to look for (e.g, v:IsNPC() or ( v.BaseClass and v.BaseClass.Type == 'nextbot' ))? I wanted to see if I could have it detect the DrGBase Nextbots using the "motiontracker_dot" material (green) and to track friendly/hostile NPCs as a different color (orange). Also on a side related note to the tracker, is there a way I can change the speed of the CurTime to where the textures would flash quicker when you approach a player or NPC and slow down when you're further away from them? (Line 324: "surface.SetDrawColor( 150, 255, 150, 255 - 200 * ( ( math.sin ( CurTime() *25 ) + 1) / 2 ) )")
Última edición por Funtime Freddy 60; 11 MAR a las 23:55