fix a small bug regarding bobfall git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10581 d7cf8633-e32d-0410-b094-e92efae38249
Fix a typo (v_idlescale is always 0 there) Signed-off-by: terencehill <piuntn@gmail.com> git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10495 d7cf8633-e32d-0410-b094-e92efae38249
use cl.movevars_stepheight for stair smoothing git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10395 d7cf8633-e32d-0410-b094-e92efae38249
Merge remote branch 'origin/mirceakitsune/landing_viewshake_fix' git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10355 d7cf8633-e32d-0410-b094-e92efae38249
And my third intended change: Remove view bobbing dependencies from the gun model bobbing. It has its own cvar and imo there's no reason to block this effect when the normal bobbing is disabled. Their intensities could also be different, which is another reason why I think this doesn't make sense. I don't believe it should change anything for Quake players since this just allows you to disable both effects individually. If the core developers disagree please revert this change. From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com> git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10354 d7cf8633-e32d-0410-b094-e92efae38249
Second change: Use cos for the horizontal view bobbing while leaving sin for the vertical (old) one. This makes the view bobbing look rounder and prettier when both are enabled. From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com> git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10353 d7cf8633-e32d-0410-b094-e92efae38249
Sort this space in a more correct way while I'm at it From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com> git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10352 d7cf8633-e32d-0410-b094-e92efae38249
Fix some final things on my list for my effects in Darkplaces. First change: Use the highpass / lowpass values in Xonotic for gun leaning / following, which are much better. From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com> git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10351 d7cf8633-e32d-0410-b094-e92efae38249
Oops, must be framerate dependent From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com> git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10348 d7cf8633-e32d-0410-b094-e92efae38249
Fix the final details and disable by default. Use cl_bobfall 0.05 to test at a good value. Ready for testing and merging. From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com> git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10347 d7cf8633-e32d-0410-b094-e92efae38249
Minimum necessary speed for fall-bobbing to occur From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com> git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10346 d7cf8633-e32d-0410-b094-e92efae38249
Bounds From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com> git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10345 d7cf8633-e32d-0410-b094-e92efae38249
Cvars. Enabled by default just for testing until everything is done. From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com> git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10344 d7cf8633-e32d-0410-b094-e92efae38249
The code works as intended! Change some names and comments in the meantime. From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com> git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10343 d7cf8633-e32d-0410-b094-e92efae38249
Very close to getting the correct maths done. It now works as intended, just need to separate the swing's length and speed. From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com> git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10342 d7cf8633-e32d-0410-b094-e92efae38249
Even closer to a senseful code. We need to get just one swing using sin() From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com> git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10341 d7cf8633-e32d-0410-b094-e92efae38249
Use sin() for the the view going up / down. Now it needs to be arranged in a correct way. From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com> git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10340 d7cf8633-e32d-0410-b094-e92efae38249
More progress, still nothing considerable From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com> git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10339 d7cf8633-e32d-0410-b094-e92efae38249
Some comments and a view bound on the speed, which should match xyspeed's for the bobbing From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com> git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10338 d7cf8633-e32d-0410-b094-e92efae38249
Make the view slowly go back after hitting the ground. We need to do the same for both up and down. Also use reasonable values until cvars are done. From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com> git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10337 d7cf8633-e32d-0410-b094-e92efae38249