prop_rope: adjust multiplier to match the original sag strength

This commit is contained in:
Marco Cawthorne 2022-06-27 19:57:15 -07:00
parent 5691fe518f
commit 4dc1dc1143
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
1 changed files with 3 additions and 4 deletions

View File

@ -136,16 +136,15 @@ prop_rope::predraw(void)
float sag = 0.0f;
float swing = 0.0f;
progress += travel;
float c1 = ropecos(progress) * M_PI;
float c2 = ropecos(progress) * M_PI;
float c1 = (ropecos(progress) * M_PI) * 2.25f;
/* loose hanging rope */
if (flags & 1) {
sag = c1 * m_flSag;
swing = c1 * m_flSwingFactor;
} else {
sag = c2 * m_flSag;
swing = c2 * m_flSwingFactor;
sag = c1 * m_flSag;
swing = c1 * m_flSwingFactor;
}
/* travel further and sag */