Raised This Month: $51 Target: $400
 12% 

Thirdperson and cam_collision with non-solid players


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Byte
Senior Member
Join Date: Jun 2010
Location: 📦 CCSPlayer
Old 01-25-2018 , 01:38   Thirdperson and cam_collision with non-solid players
Reply With Quote #1

Does anyone know how to keep wall based collision behaviour with cam_collision 1 in thirdperson but have it not trigger on non-solid players (either with mp_solid_teammates 0 or with a plugin that changes collision groups of all players)?

Game is for CSGO.

Basically the problem is i'm using a plugin to have non-solid players so they can walk through each other. I also allow thirdperson to be used. With cam_collision 1 when you back up to a wall with thirdperson it moves the camera distance (camera offset) closer to you so you don't see behind walls. However, it sets the camera offset dist to 0 when you stack with another player.

I basically would like to make it ignore players for this.

Some SDK code:

https://github.com/ValveSoftware/sou...camera.cpp#L34

https://github.com/ValveSoftware/sou...amera.cpp#L545

Any ideas?

Idea 1: Turn off cam_collision and reimplement the behaviour in a plugin. Possibly using tracerays to see if you are hitting a wall (but ignoring players?).
__________________
STEAM: /id/invexbyte | Github: Mo Beigi | Discord: Byte#0017
Community: Invex Gaming | My Plugins: Click Me!


Last edited by Byte; 01-25-2018 at 01:50.
Byte is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:17.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode