mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-03-03 17:25:24 +03:00
Move some new features to REGAMEDLL_ADD
This commit is contained in:
parent
ded6b32e85
commit
3b612dc857
@ -94,6 +94,13 @@ cvar_t sk_scientist_heal1 = { "sk_scientist_heal1", "0", 0, 0.0f, nullptr };
|
|||||||
cvar_t sk_scientist_heal2 = { "sk_scientist_heal2", "0", 0, 0.0f, nullptr };
|
cvar_t sk_scientist_heal2 = { "sk_scientist_heal2", "0", 0, 0.0f, nullptr };
|
||||||
cvar_t sk_scientist_heal3 = { "sk_scientist_heal3", "0", 0, 0.0f, nullptr };
|
cvar_t sk_scientist_heal3 = { "sk_scientist_heal3", "0", 0, 0.0f, nullptr };
|
||||||
|
|
||||||
|
#ifdef BUILD_LATEST
|
||||||
|
|
||||||
|
cvar_t scoreboard_showmoney = { "mp_scoreboard_showmoney", "3", FCVAR_SERVER, 0.0f, nullptr };
|
||||||
|
cvar_t scoreboard_showhealth = { "mp_scoreboard_showhealth", "3", FCVAR_SERVER, 0.0f, nullptr };
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef REGAMEDLL_ADD
|
#ifdef REGAMEDLL_ADD
|
||||||
|
|
||||||
cvar_t game_version = { "game_version", APP_VERSION, FCVAR_SERVER, 0.0f, nullptr };
|
cvar_t game_version = { "game_version", APP_VERSION, FCVAR_SERVER, 0.0f, nullptr };
|
||||||
@ -131,9 +138,6 @@ cvar_t allow_point_servercommand = { "mp_allow_point_servercommand", "0", 0, 0.0
|
|||||||
cvar_t hullbounds_sets = { "mp_hullbounds_sets", "1", 0, 0.0f, nullptr };
|
cvar_t hullbounds_sets = { "mp_hullbounds_sets", "1", 0, 0.0f, nullptr };
|
||||||
cvar_t unduck_method = { "mp_unduck_method", "0", 0, 0.0f, nullptr };
|
cvar_t unduck_method = { "mp_unduck_method", "0", 0, 0.0f, nullptr };
|
||||||
|
|
||||||
cvar_t scoreboard_showmoney = { "mp_scoreboard_showmoney", "3", FCVAR_SERVER, 0.0f, nullptr };
|
|
||||||
cvar_t scoreboard_showhealth = { "mp_scoreboard_showhealth", "3", FCVAR_SERVER, 0.0f, nullptr };
|
|
||||||
|
|
||||||
cvar_t ff_damage_reduction_bullets = { "ff_damage_reduction_bullets", "0.35", FCVAR_SERVER, 0.0f, nullptr };
|
cvar_t ff_damage_reduction_bullets = { "ff_damage_reduction_bullets", "0.35", FCVAR_SERVER, 0.0f, nullptr };
|
||||||
cvar_t ff_damage_reduction_grenade = { "ff_damage_reduction_grenade", "0.25", FCVAR_SERVER, 0.0f, nullptr };
|
cvar_t ff_damage_reduction_grenade = { "ff_damage_reduction_grenade", "0.25", FCVAR_SERVER, 0.0f, nullptr };
|
||||||
cvar_t ff_damage_reduction_grenade_self = { "ff_damage_reduction_grenade_self", "1", FCVAR_SERVER, 0.0f, nullptr };
|
cvar_t ff_damage_reduction_grenade_self = { "ff_damage_reduction_grenade_self", "1", FCVAR_SERVER, 0.0f, nullptr };
|
||||||
|
@ -1858,12 +1858,19 @@ void CBombTarget::BombTargetTouch(CBaseEntity *pOther)
|
|||||||
|
|
||||||
CBasePlayer *pPlayer = static_cast<CBasePlayer *>(pOther);
|
CBasePlayer *pPlayer = static_cast<CBasePlayer *>(pOther);
|
||||||
|
|
||||||
if (pPlayer->m_bHasC4
|
if (pPlayer->m_bHasC4)
|
||||||
#ifdef REGAMEDLL_FIXES
|
|
||||||
&& (legacy_bombtarget_touch.value || IsPlayerInBombSite(pPlayer))
|
|
||||||
#endif
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
|
#ifdef REGAMEDLL_ADD
|
||||||
|
if (!legacy_bombtarget_touch.value)
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
|
||||||
|
#ifdef REGAMEDLL_FIXES
|
||||||
|
if (!IsPlayerInBombSite(pPlayer))
|
||||||
|
return;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
pPlayer->m_signals.Signal(SIGNAL_BOMB);
|
pPlayer->m_signals.Signal(SIGNAL_BOMB);
|
||||||
pPlayer->m_pentCurBombTarget = ENT(pev);
|
pPlayer->m_pentCurBombTarget = ENT(pev);
|
||||||
}
|
}
|
||||||
|
@ -2176,13 +2176,15 @@ void CArmoury::Spawn()
|
|||||||
|
|
||||||
void CArmoury::Restart()
|
void CArmoury::Restart()
|
||||||
{
|
{
|
||||||
#ifdef REGAMEDLL_FIXES
|
#ifdef REGAMEDLL_ADD
|
||||||
if (!weapons_allow_map_placed.value)
|
if (!weapons_allow_map_placed.value)
|
||||||
{
|
{
|
||||||
Hide();
|
Hide();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef REGAMEDLL_FIXES
|
||||||
// This code refers to the mode of Escape. (Because there is relationship to the team Terrorists)
|
// This code refers to the mode of Escape. (Because there is relationship to the team Terrorists)
|
||||||
if (CSGameRules()->m_bMapHasEscapeZone)
|
if (CSGameRules()->m_bMapHasEscapeZone)
|
||||||
#endif
|
#endif
|
||||||
|
@ -810,7 +810,7 @@
|
|||||||
<PropertyGroup Label="Globals">
|
<PropertyGroup Label="Globals">
|
||||||
<ProjectGuid>{70A2B904-B7DB-4C48-8DE0-AF567360D572}</ProjectGuid>
|
<ProjectGuid>{70A2B904-B7DB-4C48-8DE0-AF567360D572}</ProjectGuid>
|
||||||
<RootNamespace>ReGameDLL</RootNamespace>
|
<RootNamespace>ReGameDLL</RootNamespace>
|
||||||
<MinimumVisualStudioVersion>12.0</MinimumVisualStudioVersion>
|
<MinimumVisualStudioVersion>12.0</MinimumVisualStudioVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user