Jump to content

Home

Collision Checks


Dom_152

Recommended Posts

Posted

Is it possible to controls collision cheks (E.g. Bypass them if a player is ghosted) on the server side? Or must it be done on the client side? Either way how can this be acheived?

Posted

I looked but there doesn't seem to be anything. I looked for references for TEAM_SPECTATOR. Maybe I'm just not looking hard enough.

EDIT: Yay I found it. I looked for PM_SPECTATOR and it's done like this:

 

pm.tracemask = MASK_PLAYERSOLID & ~CONTENTS_BODY; // spectators can fly through bodies

 

Now I gotta see if I can work out how to make it so that certain players can go through some peoples bodies but not others. Also make people invisible... like mind trick.

Posted

I added it in Clientthink_real(). There's a section which checks if you are dead etc. and changes your tracemask based on that so I added an else if{} for my bit.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...