Changed dlight positions a little, since the seat/splitscreen stuff changed the view viewmodels are positioned.s
This commit is contained in:
parent
d3365983a0
commit
6c3c7dc381
5 changed files with 4 additions and 3 deletions
|
@ -59,7 +59,7 @@ void Nightvision_PreDraw( void ) {
|
|||
}
|
||||
|
||||
if ( iNightVision == TRUE ) {
|
||||
dynamiclight_add( getproperty( VF_ORIGIN ), 500, '0 0.45 0');
|
||||
dynamiclight_add( pSeat->vPlayerOrigin, 500, '0 0.45 0');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -144,7 +144,7 @@ void View_DrawViewModel( void ) {
|
|||
}
|
||||
|
||||
// Don't update when paused
|
||||
if ( serverkey("pausestate") == "0" ) {
|
||||
if ( serverkey( "pausestate" ) == "0" ) {
|
||||
View_CalcBob();
|
||||
|
||||
int aw = getstati( STAT_ACTIVEWEAPON );
|
||||
|
@ -197,7 +197,7 @@ void View_DrawViewModel( void ) {
|
|||
// Update muzzleflash position and draw it
|
||||
if ( eMuzzleflash.alpha > 0.0f ) {
|
||||
eMuzzleflash.origin = gettaginfo( eViewModel, eMuzzleflash.skin );
|
||||
dynamiclight_add( eMuzzleflash.origin, 400 * eMuzzleflash.alpha, '1 0.45 0');
|
||||
dynamiclight_add( pSeat->vPlayerOrigin, 400 * eMuzzleflash.alpha, '1 0.45 0');
|
||||
addentity( eMuzzleflash );
|
||||
}
|
||||
|
||||
|
|
|
@ -173,6 +173,7 @@ void Weapon_Reload( float fWeapon ) {
|
|||
if ( self.fAttackFinished > time ) {
|
||||
return;
|
||||
}
|
||||
self.viewzoom = 1.0;
|
||||
#endif
|
||||
#ifdef CSQC
|
||||
if ( fWeaponEventPlayer != player_localentnum || autocvar_cl_thirdperson == TRUE ) {
|
||||
|
|
Binary file not shown.
BIN
freecs/progs.dat
BIN
freecs/progs.dat
Binary file not shown.
Loading…
Reference in a new issue