mirror of
https://github.com/Pinsplash/halflife2chaos.git
synced 2024-10-29 23:32:38 +01:00
added Yaw Is Roll
This commit is contained in:
parent
b9cf59931c
commit
6bf327b7d4
@ -185,6 +185,9 @@ chaos_time_steal_health 1
|
||||
//Vision Machine Broke
|
||||
chaos_time_lock_pvs 0.5
|
||||
|
||||
//Yaw Is Roll
|
||||
chaos_time_yawroll 1
|
||||
|
||||
//You Teleport?
|
||||
chaos_time_npc_teleport 1
|
||||
|
||||
@ -430,6 +433,9 @@ chaos_prob_npc_hate 100
|
||||
//World of Love
|
||||
chaos_prob_npc_like 100
|
||||
|
||||
//Yaw Is Roll
|
||||
chaos_prob_yawroll 100
|
||||
|
||||
//You Teleport?
|
||||
chaos_prob_npc_teleport 100
|
||||
|
||||
|
@ -185,6 +185,9 @@ chaos_time_steal_health 1
|
||||
//Vision Machine Broke
|
||||
chaos_time_lock_pvs 0.5
|
||||
|
||||
//Yaw Is Roll
|
||||
chaos_time_yawroll 1
|
||||
|
||||
//You Teleport?
|
||||
chaos_time_npc_teleport 1
|
||||
|
||||
@ -430,6 +433,9 @@ chaos_prob_npc_hate 100
|
||||
//World of Love
|
||||
chaos_prob_npc_like 100
|
||||
|
||||
//Yaw Is Roll
|
||||
chaos_prob_yawroll 100
|
||||
|
||||
//You Teleport?
|
||||
chaos_prob_npc_teleport 100
|
||||
|
||||
|
@ -185,6 +185,9 @@ chaos_time_steal_health 1
|
||||
//Vision Machine Broke
|
||||
chaos_time_lock_pvs 0.5
|
||||
|
||||
//Yaw Is Roll
|
||||
chaos_time_yawroll 1
|
||||
|
||||
//You Teleport?
|
||||
chaos_time_npc_teleport 1
|
||||
|
||||
@ -430,6 +433,9 @@ chaos_prob_npc_hate 100
|
||||
//World of Love
|
||||
chaos_prob_npc_like 100
|
||||
|
||||
//Yaw Is Roll
|
||||
chaos_prob_yawroll 100
|
||||
|
||||
//You Teleport?
|
||||
chaos_prob_npc_teleport 100
|
||||
|
||||
|
@ -83,7 +83,8 @@ extern bool g_bRenderingScreenshot;
|
||||
extern ConVar sensitivity;
|
||||
#endif
|
||||
|
||||
ConVar zoom_sensitivity_ratio( "zoom_sensitivity_ratio", "1.0", 0, "Additional mouse sensitivity scale factor applied when FOV is zoomed in." );
|
||||
ConVar zoom_sensitivity_ratio("zoom_sensitivity_ratio", "1.0", 0, "Additional mouse sensitivity scale factor applied when FOV is zoomed in.");
|
||||
ConVar chaos_yawroll("chaos_yawroll", "0");
|
||||
|
||||
CViewRender g_DefaultViewRender;
|
||||
IViewRender *view = NULL; // set in cldll_client_init.cpp if no mod creates their own
|
||||
@ -683,8 +684,9 @@ void CViewRender::SetUpViews()
|
||||
// FIXME: What happens when there's no player?
|
||||
if (pPlayer)
|
||||
{
|
||||
pPlayer->CalcView( view.origin, view.angles, view.zNear, view.zFar, view.fov );
|
||||
|
||||
pPlayer->CalcView(view.origin, view.angles, view.zNear, view.zFar, view.fov);
|
||||
if (chaos_yawroll.GetBool())
|
||||
view.angles.z = view.angles.y;
|
||||
// If we are looking through another entities eyes, then override the angles/origin for view
|
||||
int viewentity = render->GetViewEntity();
|
||||
|
||||
@ -715,7 +717,7 @@ void CViewRender::SetUpViews()
|
||||
}
|
||||
|
||||
// give the toolsystem a chance to override the view
|
||||
ToolFramework_SetupEngineView( view.origin, view.angles, view.fov );
|
||||
ToolFramework_SetupEngineView(view.origin, view.angles, view.fov);
|
||||
|
||||
if ( engine->IsPlayingDemo() )
|
||||
{
|
||||
@ -787,7 +789,7 @@ void CViewRender::SetUpViews()
|
||||
// Compute the world->main camera transform
|
||||
// This is only done for the main "middle-eye" view, not for the various other views.
|
||||
ComputeCameraVariables( view.origin, view.angles,
|
||||
&g_vecVForward, &g_vecVRight, &g_vecVUp, &g_matCamInverse );
|
||||
&g_vecVForward, &g_vecVRight, &g_vecVUp, &g_matCamInverse);
|
||||
|
||||
// set up the hearing origin...
|
||||
AudioState_t audioState;
|
||||
|
@ -95,6 +95,7 @@ enum Effect_T
|
||||
EFFECT_SECONDARY_SPAM,
|
||||
EFFECT_STEAL_HEALTH,
|
||||
EFFECT_SUIT_SWAP,
|
||||
EFFECT_YAWROLL,
|
||||
//EFFECT_EVIL_ELI,
|
||||
//EFFECT_EVIL_BREEN,
|
||||
|
||||
|
@ -5113,6 +5113,7 @@ ConVar chaos_time_quickclip_off("chaos_time_quickclip_off", "1");
|
||||
ConVar chaos_time_random_cc("chaos_time_random_cc", "1");
|
||||
ConVar chaos_time_secondary_spam("chaos_time_secondary_spam", "1");
|
||||
ConVar chaos_time_steal_health("chaos_time_steal_health", "1");
|
||||
ConVar chaos_time_yawroll("chaos_time_yawroll", "1");
|
||||
|
||||
ConVar chaos_prob_zerog("chaos_prob_zerog", "100");
|
||||
ConVar chaos_prob_superg("chaos_prob_superg", "100");
|
||||
@ -5194,6 +5195,7 @@ ConVar chaos_prob_evil_vort("chaos_prob_evil_vort", "100");
|
||||
ConVar chaos_prob_secondary_spam("chaos_prob_secondary_spam", "100");
|
||||
ConVar chaos_prob_steal_health("chaos_prob_steal_health", "100");
|
||||
ConVar chaos_prob_suit_swap("chaos_prob_suit_swap", "100");
|
||||
ConVar chaos_prob_yawroll("chaos_prob_yawroll", "100");
|
||||
//ConVar chaos_prob_evil_eli("chaos_prob_evil_eli", "100");
|
||||
//ConVar chaos_prob_evil_breen("chaos_prob_evil_breen", "100");
|
||||
#define ERROR_WEIGHT 1
|
||||
@ -5280,6 +5282,7 @@ void CHL2_Player::PopulateEffects()
|
||||
CreateEffect<CESecondarySpam>(EFFECT_SECONDARY_SPAM, MAKE_STRING("Spam Alt Fire"), EC_NONE, chaos_time_secondary_spam.GetFloat(), chaos_prob_secondary_spam.GetInt());
|
||||
CreateEffect<>(EFFECT_STEAL_HEALTH, MAKE_STRING("Vampires"), EC_NONE, chaos_time_steal_health.GetFloat(), chaos_prob_steal_health.GetInt());
|
||||
CreateEffect<CESuitSwap>(EFFECT_SUIT_SWAP, MAKE_STRING("Swap Health & Suit Power"), EC_NONE, -1, chaos_prob_suit_swap.GetInt());
|
||||
CreateEffect<>(EFFECT_YAWROLL, MAKE_STRING("Yaw Is Roll"), EC_NONE, chaos_time_yawroll.GetFloat(), chaos_prob_yawroll.GetInt());
|
||||
//CreateEffect<CEEvilNPC>(EFFECT_EVIL_ELI, MAKE_STRING("Evil Eli"), EC_HAS_WEAPON, -1, chaos_prob_evil_eli.GetInt());
|
||||
//CreateEffect<CEEvilNPC>(EFFECT_EVIL_BREEN, MAKE_STRING("Hands-on Dr. Breen"), EC_HAS_WEAPON, -1, chaos_prob_evil_breen.GetInt());
|
||||
}
|
||||
@ -5893,6 +5896,9 @@ void CChaosEffect::StartEffect()
|
||||
case EFFECT_STEAL_HEALTH:
|
||||
chaos_steal_health.SetValue(1);
|
||||
break;
|
||||
case EFFECT_YAWROLL:
|
||||
engine->ClientCommand(engine->PEntityOfEntIndex(1), "chaos_yawroll 1");
|
||||
break;
|
||||
}
|
||||
}// StartEffect()
|
||||
void CChaosEffect::StopEffect()
|
||||
@ -5945,6 +5951,9 @@ void CChaosEffect::StopEffect()
|
||||
case EFFECT_STEAL_HEALTH:
|
||||
chaos_steal_health.SetValue(0);
|
||||
break;
|
||||
case EFFECT_YAWROLL:
|
||||
engine->ClientCommand(engine->PEntityOfEntIndex(1), "chaos_yawroll 0");
|
||||
break;
|
||||
}
|
||||
}// StopEffect()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user