New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CFrictionModifier triggers broken in multiplayer #1542

Open
L453rh4wk opened this Issue Sep 1, 2014 · 2 comments

Comments

Projects
None yet
2 participants
@L453rh4wk

L453rh4wk commented Sep 1, 2014

Playing Opposing Force and Half-life DM, I've found a very annoying problem in some maps like (op4ctf_hairball and op4ctf_wonderland). The problem consists in after a player leaves an oily / icy surface (CFrictionModifier triggers) his friction never resets to default and needs to die and respawn to avoid start bouncing arround madly.

Coding my mod, i've solved it by editing pm_shared.c at line 3332

// In single player, reset friction after each movement to FrictionModifier Triggers work still.
if ( !pmove->multiplayer && ( pmove->movetype == MOVETYPE_WALK ) )
{
pmove->friction = 1.0f;
}

replacing this code block by:

if (pmove->movetype == MOVETYPE_WALK )
{
pmove->friction = 1.0f;
}

I'm using the latest beta version on windows 7
Exe version 1.1.2.2/Stdio (valve)
Exe build: 13:14:12 Aug 29 2013 (6153)

@tschumann

This comment has been minimized.

Show comment
Hide comment
@tschumann

tschumann Sep 2, 2014

Hm, I remember this used to work in Opposing Force on Steam ages ago but not in the Half-Life mod code (incidentally, thanks for posting a fix - I wanted to solve this in a mod but couldn't work out where the problem was).

tschumann commented Sep 2, 2014

Hm, I remember this used to work in Opposing Force on Steam ages ago but not in the Half-Life mod code (incidentally, thanks for posting a fix - I wanted to solve this in a mod but couldn't work out where the problem was).

@tschumann

This comment has been minimized.

Show comment
Hide comment
@tschumann

tschumann Jan 13, 2015

@L453rh4wk why don't you create a pull request?

tschumann commented Jan 13, 2015

@L453rh4wk why don't you create a pull request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment