mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-23 13:14:51 +00:00
Merge branch 'master' into opfor
This commit is contained in:
commit
667ae2cbcc
@ -1405,7 +1405,7 @@ void EV_FireRpg( event_args_t *args )
|
||||
//======================
|
||||
|
||||
//======================
|
||||
// EGON END
|
||||
// EGON START
|
||||
//======================
|
||||
enum egon_e
|
||||
{
|
||||
@ -1534,10 +1534,11 @@ void EV_EgonFire( event_args_t *args )
|
||||
float g = 50.0f;
|
||||
float b = 125.0f;
|
||||
|
||||
if( IEngineStudio.IsHardware() )
|
||||
// if( IEngineStudio.IsHardware() )
|
||||
{
|
||||
r /= 100.0f;
|
||||
g /= 100.0f;
|
||||
r /= 255.0f;
|
||||
g /= 255.0f;
|
||||
b /= 255.0f;
|
||||
}
|
||||
|
||||
pBeam = gEngfuncs.pEfxAPI->R_BeamEntPoint( idx | 0x1000, tr.endpos, iBeamModelIndex, 99999, 3.5, 0.2, 0.7, 55, 0, 0, r, g, b );
|
||||
|
@ -35,7 +35,7 @@ cvar_t weaponstay = { "mp_weaponstay","0", FCVAR_SERVER };
|
||||
cvar_t selfgauss = { "selfgauss", "1", FCVAR_SERVER };
|
||||
cvar_t chargerfix = { "chargerfix", "0", FCVAR_SERVER };
|
||||
cvar_t satchelfix = { "satchelfix", "0", FCVAR_SERVER };
|
||||
cvar_t monsteryawspeedfix = { "monsteryawspeedfix", "0", FCVAR_SERVER };
|
||||
cvar_t monsteryawspeedfix = { "monsteryawspeedfix", "1", FCVAR_SERVER };
|
||||
cvar_t forcerespawn = { "mp_forcerespawn","1", FCVAR_SERVER };
|
||||
cvar_t flashlight = { "mp_flashlight","0", FCVAR_SERVER };
|
||||
cvar_t aimcrosshair = { "mp_autocrosshair","1", FCVAR_SERVER };
|
||||
|
@ -1224,23 +1224,26 @@ void CBasePlayer::WaterMove()
|
||||
}
|
||||
|
||||
// make bubbles
|
||||
air = (int)( pev->air_finished - gpGlobals->time );
|
||||
if( !RANDOM_LONG( 0, 0x1f ) && RANDOM_LONG( 0, AIRTIME - 1 ) >= air )
|
||||
if( pev->waterlevel == 3 )
|
||||
{
|
||||
switch( RANDOM_LONG( 0, 3 ) )
|
||||
air = (int)( pev->air_finished - gpGlobals->time );
|
||||
if( !RANDOM_LONG( 0, 0x1f ) && RANDOM_LONG( 0, AIRTIME - 1 ) >= air )
|
||||
{
|
||||
case 0:
|
||||
EMIT_SOUND( ENT( pev ), CHAN_BODY, "player/pl_swim1.wav", 0.8, ATTN_NORM );
|
||||
break;
|
||||
case 1:
|
||||
EMIT_SOUND( ENT( pev ), CHAN_BODY, "player/pl_swim2.wav", 0.8, ATTN_NORM );
|
||||
break;
|
||||
case 2:
|
||||
EMIT_SOUND( ENT( pev ), CHAN_BODY, "player/pl_swim3.wav", 0.8, ATTN_NORM );
|
||||
break;
|
||||
case 3:
|
||||
EMIT_SOUND( ENT( pev ), CHAN_BODY, "player/pl_swim4.wav", 0.8, ATTN_NORM );
|
||||
break;
|
||||
switch( RANDOM_LONG( 0, 3 ) )
|
||||
{
|
||||
case 0:
|
||||
EMIT_SOUND( ENT( pev ), CHAN_BODY, "player/pl_swim1.wav", 0.8, ATTN_NORM );
|
||||
break;
|
||||
case 1:
|
||||
EMIT_SOUND( ENT( pev ), CHAN_BODY, "player/pl_swim2.wav", 0.8, ATTN_NORM );
|
||||
break;
|
||||
case 2:
|
||||
EMIT_SOUND( ENT( pev ), CHAN_BODY, "player/pl_swim3.wav", 0.8, ATTN_NORM );
|
||||
break;
|
||||
case 3:
|
||||
EMIT_SOUND( ENT( pev ), CHAN_BODY, "player/pl_swim4.wav", 0.8, ATTN_NORM );
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -684,6 +684,9 @@ int CScientist::ISoundMask( void )
|
||||
{
|
||||
return bits_SOUND_WORLD |
|
||||
bits_SOUND_COMBAT |
|
||||
bits_SOUND_CARCASS |
|
||||
bits_SOUND_MEAT |
|
||||
bits_SOUND_GARBAGE |
|
||||
bits_SOUND_DANGER |
|
||||
bits_SOUND_PLAYER;
|
||||
}
|
||||
|
@ -2275,8 +2275,8 @@ void CTriggerCamera::FollowTarget()
|
||||
if( dy > 180 )
|
||||
dy = dy - 360;
|
||||
|
||||
pev->avelocity.x = dx * 40 * gpGlobals->frametime;
|
||||
pev->avelocity.y = dy * 40 * gpGlobals->frametime;
|
||||
pev->avelocity.x = dx * 40 * 0.01f;
|
||||
pev->avelocity.y = dy * 40 * 0.01f;
|
||||
|
||||
if( !( FBitSet( pev->spawnflags, SF_CAMERA_PLAYER_TAKECONTROL ) ) )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user