mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-01-16 00:28:15 +03:00
parent
7b7a1b9d94
commit
ee34b06605
@ -100,6 +100,7 @@ This means that plugins that do binary code analysis (Orpheu for example) probab
|
|||||||
| mp_give_player_c4 | 1 | 0 | 1 | Whether this map should spawn a C4 bomb for a player or not.<br/> `0` disabled<br/>`1` enabled |
|
| mp_give_player_c4 | 1 | 0 | 1 | Whether this map should spawn a C4 bomb for a player or not.<br/> `0` disabled<br/>`1` enabled |
|
||||||
| mp_weapons_allow_map_placed | 1 | 0 | 1 | When set, map weapons (located on the floor by map) will be shown.<br/> `0` hide all map weapons.<br/>`1` enabled<br/>`NOTE`: Effect will work after round restart. |
|
| mp_weapons_allow_map_placed | 1 | 0 | 1 | When set, map weapons (located on the floor by map) will be shown.<br/> `0` hide all map weapons.<br/>`1` enabled<br/>`NOTE`: Effect will work after round restart. |
|
||||||
| mp_free_armor | 0 | 0 | 2 | Give free armor on player spawn.<br/>`0` disabled <br/>`1` Give Kevlar <br/>`2` Give Kevlar + Helmet |
|
| mp_free_armor | 0 | 0 | 2 | Give free armor on player spawn.<br/>`0` disabled <br/>`1` Give Kevlar <br/>`2` Give Kevlar + Helmet |
|
||||||
|
| mp_team_flash | 1 | -1 | 1 | Sets the behaviour for Flashbangs on teammates.<br/>`-1` Don't affect teammates neither flash owner <br/>`0` Don't affect teammates <br/>`1` Affects teammates |
|
||||||
| mp_fadetoblack | 0 | 0 | 2 | Observer's screen will fade to black on kill event or permanent.<br/> `0` No fade.<br/>`1` Fade to black and won't be able to watch anybody.<br/>`2` fade to black only on kill moment. |
|
| mp_fadetoblack | 0 | 0 | 2 | Observer's screen will fade to black on kill event or permanent.<br/> `0` No fade.<br/>`1` Fade to black and won't be able to watch anybody.<br/>`2` fade to black only on kill moment. |
|
||||||
| mp_falldamage | 1 | 0 | 1 | Damage from falling.<br/>`0` disabled <br/>`1` enabled |
|
| mp_falldamage | 1 | 0 | 1 | Damage from falling.<br/>`0` disabled <br/>`1` enabled |
|
||||||
| sv_allchat | 1 | 0 | 1 | Players can receive all other players text chat, team restrictions apply<br/>`0` disabled <br/>`1` enabled |
|
| sv_allchat | 1 | 0 | 1 | Players can receive all other players text chat, team restrictions apply<br/>`0` disabled <br/>`1` enabled |
|
||||||
|
8
dist/game.cfg
vendored
8
dist/game.cfg
vendored
@ -474,6 +474,14 @@ mp_ct_default_weapons_secondary "usp"
|
|||||||
// Default value: "0"
|
// Default value: "0"
|
||||||
mp_free_armor "0"
|
mp_free_armor "0"
|
||||||
|
|
||||||
|
// Sets the behaviour for Flashbangs on teammates.
|
||||||
|
// -1 - Don't affect teammates neither flash owner
|
||||||
|
// 0 - Don't affect teammates
|
||||||
|
// 1 - Affects teammates (default behaviour)
|
||||||
|
//
|
||||||
|
// Default value: "1"
|
||||||
|
mp_team_flash 1
|
||||||
|
|
||||||
// Players can receive all other players text chat, team restrictions apply.
|
// Players can receive all other players text chat, team restrictions apply.
|
||||||
// 0 - disabled (default behaviour)
|
// 0 - disabled (default behaviour)
|
||||||
// 1 - enabled
|
// 1 - enabled
|
||||||
|
@ -90,6 +90,19 @@ void RadiusFlash(Vector vecSrc, entvars_t *pevInflictor, entvars_t *pevAttacker,
|
|||||||
|
|
||||||
if (tr2.flFraction >= 1.0)
|
if (tr2.flFraction >= 1.0)
|
||||||
{
|
{
|
||||||
|
#ifdef REGAMEDLL_ADD
|
||||||
|
switch ((int)teamflash.value)
|
||||||
|
{
|
||||||
|
case 0:
|
||||||
|
if (pPlayer->pev != pevAttacker && g_pGameRules->PlayerRelationship(pPlayer, CBaseEntity::Instance(pevAttacker)) == GR_TEAMMATE)
|
||||||
|
continue;
|
||||||
|
break;
|
||||||
|
case -1:
|
||||||
|
if (pPlayer->pev == pevAttacker || g_pGameRules->PlayerRelationship(pPlayer, CBaseEntity::Instance(pevAttacker)) == GR_TEAMMATE)
|
||||||
|
continue;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
if (tr.fStartSolid)
|
if (tr.fStartSolid)
|
||||||
{
|
{
|
||||||
tr.vecEndPos = vecSrc;
|
tr.vecEndPos = vecSrc;
|
||||||
|
@ -160,6 +160,7 @@ cvar_t t_give_player_knife = { "mp_t_give_player_knife", "1", 0, 1
|
|||||||
cvar_t t_default_weapons_secondary = { "mp_t_default_weapons_secondary", "glock18", 0, 0.0f, nullptr };
|
cvar_t t_default_weapons_secondary = { "mp_t_default_weapons_secondary", "glock18", 0, 0.0f, nullptr };
|
||||||
cvar_t t_default_weapons_primary = { "mp_t_default_weapons_primary", "", 0, 0.0f, nullptr };
|
cvar_t t_default_weapons_primary = { "mp_t_default_weapons_primary", "", 0, 0.0f, nullptr };
|
||||||
cvar_t free_armor = { "mp_free_armor", "0", 0, 0.0f, nullptr };
|
cvar_t free_armor = { "mp_free_armor", "0", 0, 0.0f, nullptr };
|
||||||
|
cvar_t teamflash = { "mp_team_flash", "1", 0, 1.0f, nullptr };
|
||||||
cvar_t allchat = { "sv_allchat", "0", 0, 0.0f, nullptr };
|
cvar_t allchat = { "sv_allchat", "0", 0, 0.0f, nullptr };
|
||||||
cvar_t sv_autobunnyhopping = { "sv_autobunnyhopping", "0", 0, 0.0f, nullptr };
|
cvar_t sv_autobunnyhopping = { "sv_autobunnyhopping", "0", 0, 0.0f, nullptr };
|
||||||
cvar_t sv_enablebunnyhopping = { "sv_enablebunnyhopping", "0", 0, 0.0f, nullptr };
|
cvar_t sv_enablebunnyhopping = { "sv_enablebunnyhopping", "0", 0, 0.0f, nullptr };
|
||||||
@ -410,6 +411,7 @@ void EXT_FUNC GameDLLInit()
|
|||||||
CVAR_REGISTER(&t_default_weapons_secondary);
|
CVAR_REGISTER(&t_default_weapons_secondary);
|
||||||
CVAR_REGISTER(&t_default_weapons_primary);
|
CVAR_REGISTER(&t_default_weapons_primary);
|
||||||
CVAR_REGISTER(&free_armor);
|
CVAR_REGISTER(&free_armor);
|
||||||
|
CVAR_REGISTER(&teamflash);
|
||||||
CVAR_REGISTER(&allchat);
|
CVAR_REGISTER(&allchat);
|
||||||
CVAR_REGISTER(&sv_autobunnyhopping);
|
CVAR_REGISTER(&sv_autobunnyhopping);
|
||||||
CVAR_REGISTER(&sv_enablebunnyhopping);
|
CVAR_REGISTER(&sv_enablebunnyhopping);
|
||||||
|
@ -186,6 +186,7 @@ extern cvar_t t_give_player_knife;
|
|||||||
extern cvar_t t_default_weapons_secondary;
|
extern cvar_t t_default_weapons_secondary;
|
||||||
extern cvar_t t_default_weapons_primary;
|
extern cvar_t t_default_weapons_primary;
|
||||||
extern cvar_t free_armor;
|
extern cvar_t free_armor;
|
||||||
|
extern cvar_t teamflash;
|
||||||
extern cvar_t allchat;
|
extern cvar_t allchat;
|
||||||
extern cvar_t sv_autobunnyhopping;
|
extern cvar_t sv_autobunnyhopping;
|
||||||
extern cvar_t sv_enablebunnyhopping;
|
extern cvar_t sv_enablebunnyhopping;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user