Dom_152 Posted November 25, 2006 Share Posted November 25, 2006 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? Link to comment Share on other sites More sharing options...
Tinny Posted November 26, 2006 Share Posted November 26, 2006 It has to be done server side I believe or a bg_ file. Check out how someone in spectator mode loses detection ability. Link to comment Share on other sites More sharing options...
Dom_152 Posted November 26, 2006 Author Share Posted November 26, 2006 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. Link to comment Share on other sites More sharing options...
ensiform Posted November 26, 2006 Share Posted November 26, 2006 Modifying that stuff in pmove won't work so well for a server mod. you will have to do it in several places in g_active and g_syscalls. Link to comment Share on other sites More sharing options...
Dom_152 Posted November 27, 2006 Author Share Posted November 27, 2006 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.