Results 1 to 6 of 6
  1. #1
    isagrat's Avatar
    Join Date
    Apr 2015
    Gender
    male
    Posts
    20
    Reputation
    10
    Thanks
    0

    Masking certain props

    When using util.TraceLine is it possible to add certain props to the mask? For example can I have
    Code:
    local los = {}
    -- other info
    los.mask = MASK_SHOT + (The prop that it should ignore)
    local tr = util.TraceLine(los)
    Or can you only use the mask and contents enums
    Last edited by Hunter; 03-05-2016 at 12:46 PM.

  2. #2
    eth0s's Avatar
    Join Date
    Oct 2015
    Gender
    male
    Posts
    188
    Reputation
    10
    Thanks
    1,894
    Quote Originally Posted by isagrat View Post
    When using util.TraceLine is it possible to add certain props to the mask? For example can I have
    Code:
    local los = {}
    -- other info
    los.mask = MASK_SHOT + (The prop that it should ignore)
    local tr = util.TraceLine(los)
    Or can you only use the mask and contents enums
    you can only mask's and content enums

    but what you can do is filter out props using filter in the trace structure

    https://wiki.garrysmod.com/page/Structures/Trace

    what you can do is just check the model name using https://wiki.garrysmod.com/page/Entity/GetModel

    then filter it out

    Code:
    local los = {}
    
    -- other shit
    los.filter = function( ent ) if ( ent:GetModel() == "modelorsomething" ) then return false else return true end
    or some shit
    Last edited by eth0s; 02-25-2016 at 03:40 PM.

  3. #3
    D3M0L1T10N's Avatar
    Join Date
    May 2012
    Gender
    male
    Posts
    1,364
    Reputation
    19
    Thanks
    656
    Quote Originally Posted by eth0s View Post
    you can only mask's and content enums

    but what you can do is filter out props using filter in the trace structure

    https://wiki.garrysmod.com/page/Structures/Trace

    what you can do is just check the model name using https://wiki.garrysmod.com/page/Entity/GetModel

    then filter it out

    Code:
    local los = {}
    
    -- other shit
    los.filter = function( ent ) if ( ent:GetModel() == "modelorsomething" ) then return false else return true end
    or some shit
    nice

    los.filter = function( ent ) return ( ent:GetModel() == "modelorsomething" )

    ??
    8:53 PM - Xenomorphic 1 hr 7 min cooldown: So is MPGH only exist so people can c+p from ************* and troll the gmod section?

    [IMG]https://i739.photobucke*****m/albums/xx38/jorroa5990/flatexch2_zpsec96a7e2.gif[/IMG]

  4. #4
    isagrat's Avatar
    Join Date
    Apr 2015
    Gender
    male
    Posts
    20
    Reputation
    10
    Thanks
    0
    Thanks bud didn't think of using filter
    /thread

  5. #5
    killaer58's Avatar
    Join Date
    Feb 2016
    Gender
    female
    Posts
    12
    Reputation
    10
    Thanks
    4
    you need to call it in the main game thread.

  6. #6
    Hunter's Avatar
    Join Date
    Dec 2013
    Gender
    male
    Location
    Depths Of My Mind.
    Posts
    17,463
    Reputation
    3771
    Thanks
    6,159
    My Mood
    Cheerful
    1 week has passed and no further replies have been made by the OP. Assuming solved. @NormenJaydenFBI

    /Closed.

Similar Threads

  1. [Request] How to get a certain mask?
    By Noraino in forum Payday 2 Hacks & Cheats
    Replies: 3
    Last Post: 06-10-2014, 11:46 AM
  2. [RELEASE]White Mask V1
    By White Mask in forum WarRock - International Hacks
    Replies: 21
    Last Post: 07-07-2007, 09:23 PM
  3. [RELEASE]White Mask V1.5+White Mask Bypass
    By White Mask in forum WarRock - International Hacks
    Replies: 17
    Last Post: 07-07-2007, 07:07 PM
  4. [RELEASE]White Mask V2 Super Hack
    By White Mask in forum WarRock - International Hacks
    Replies: 18
    Last Post: 07-07-2007, 05:27 PM
  5. Masking one weapon as another...
    By ituneslove in forum WarRock - International Hacks
    Replies: 6
    Last Post: 02-21-2006, 03:02 AM