mirror of
https://github.com/DrBeef/JKXR.git
synced 2024-11-23 04:22:27 +00:00
Changes to TBDC
Different menu text + added vanilla mode
This commit is contained in:
parent
83a845aa1c
commit
1af91dc411
12 changed files with 161 additions and 76 deletions
|
@ -1085,7 +1085,7 @@ qboolean NPC_ParseParms( const char *NPCName, gentity_t *NPC )
|
|||
}
|
||||
|
||||
//Override scale due to TBDC
|
||||
if(g_TeamBeefDirectorsCut->value)
|
||||
if(g_TeamBeefDirectorsCut->integer == 1)
|
||||
{
|
||||
if(!Q_stricmp( NPCName, "STOfficer" ))
|
||||
{
|
||||
|
@ -1269,7 +1269,7 @@ qboolean NPC_ParseParms( const char *NPCName, gentity_t *NPC )
|
|||
if ( !Q_stricmp( token, "}" ) )
|
||||
{
|
||||
//Override scale due to TBDC
|
||||
if(g_TeamBeefDirectorsCut->value)
|
||||
if(g_TeamBeefDirectorsCut->integer == 1)
|
||||
{
|
||||
if(!Q_stricmp( NPCName, "STOfficer" ))
|
||||
{
|
||||
|
@ -2319,7 +2319,7 @@ void NPC_LoadParms( void )
|
|||
|
||||
char npcs_filename[64];
|
||||
Com_sprintf(npcs_filename, sizeof(npcs_filename), "ext_data/%s.cfg",
|
||||
g_TeamBeefDirectorsCut->integer ? "npcs" : "npcs_og");
|
||||
g_TeamBeefDirectorsCut->integer != 0 ? "npcs" : "npcs_og");
|
||||
|
||||
char *buffer, *holdChar, *marker;
|
||||
char npcExtensionListBuf[2048]; // The list of file names read in
|
||||
|
|
|
@ -8407,11 +8407,11 @@ static void PM_Weapon( void )
|
|||
}
|
||||
PM_AddEvent( EV_FIRE_WEAPON );
|
||||
|
||||
if(pm->ps->weapon == WP_BRYAR_PISTOL && g_TeamBeefDirectorsCut->value)
|
||||
if(pm->ps->weapon == WP_BRYAR_PISTOL && g_TeamBeefDirectorsCut->integer == 1)
|
||||
{
|
||||
addTime = TBDC_BRYAR_PISTOL_FIRERATE;
|
||||
}
|
||||
else if(pm->ps->weapon == WP_BLASTER && g_TeamBeefDirectorsCut->value)
|
||||
else if(pm->ps->weapon == WP_BLASTER && g_TeamBeefDirectorsCut->integer == 1)
|
||||
{
|
||||
addTime = TBDC_BLASTER_FIRERATE;
|
||||
}
|
||||
|
|
|
@ -4995,7 +4995,7 @@ void G_Damage( gentity_t *targ, gentity_t *inflictor, gentity_t *attacker, vec3_
|
|||
knockback = 0;
|
||||
}
|
||||
// figure momentum add, even if the damage won't be taken
|
||||
if ( knockback && (!(dflags&DAMAGE_DEATH_KNOCKBACK) || g_TeamBeefDirectorsCut->value)) //&& targ->client
|
||||
if ( knockback && (!(dflags&DAMAGE_DEATH_KNOCKBACK) || g_TeamBeefDirectorsCut->integer == 1)) //&& targ->client
|
||||
{
|
||||
G_ApplyKnockback( targ, newDir, knockback );
|
||||
G_CheckKnockdown( targ, attacker, newDir, dflags, mod );
|
||||
|
@ -5352,7 +5352,7 @@ void G_Damage( gentity_t *targ, gentity_t *inflictor, gentity_t *attacker, vec3_
|
|||
{//special case because this is shotgun-ish damage, we need to multiply the knockback
|
||||
knockback *= 12;//*6 for 6 flechette shots
|
||||
}
|
||||
else if(g_TeamBeefDirectorsCut->value)
|
||||
else if(g_TeamBeefDirectorsCut->integer == 1)
|
||||
{
|
||||
knockback *= 2;
|
||||
}
|
||||
|
|
|
@ -55,7 +55,7 @@ static void WP_FireBlasterMissile( gentity_t *ent, vec3_t start, vec3_t dir, qbo
|
|||
}
|
||||
}
|
||||
|
||||
if(ent->client && ent->client->ps.clientNum == 0 && g_TeamBeefDirectorsCut->value)
|
||||
if(ent->client && ent->client->ps.clientNum == 0 && g_TeamBeefDirectorsCut->integer == 1)
|
||||
{
|
||||
velocity = TBDC_BLASTER_VELOCITY;
|
||||
}
|
||||
|
|
|
@ -100,7 +100,7 @@ static void WP_BowcasterMainFire( gentity_t *ent )
|
|||
for ( int i = 0; i < count; i++ )
|
||||
{
|
||||
// create a range of different velocities
|
||||
if(ent->client && ent->client->ps.clientNum == 0 && g_TeamBeefDirectorsCut->value)
|
||||
if(ent->client && ent->client->ps.clientNum == 0 && g_TeamBeefDirectorsCut->integer == 1)
|
||||
{
|
||||
vel = TBDC_BOWCASTER_VELOCITY * ( Q_flrand(-1.0f, 1.0f) * BOWCASTER_VEL_RANGE + 1.0f );;
|
||||
}
|
||||
|
@ -170,7 +170,7 @@ static void WP_BowcasterAltFire( gentity_t *ent )
|
|||
|
||||
WP_TraceSetStart( ent, start, vec3_origin, vec3_origin );//make sure our start point isn't on the other side of a wall
|
||||
float velocity = BOWCASTER_VELOCITY;
|
||||
if(ent->client && ent->client->ps.clientNum == 0 && g_TeamBeefDirectorsCut->value)
|
||||
if(ent->client && ent->client->ps.clientNum == 0 && g_TeamBeefDirectorsCut->integer == 1)
|
||||
{
|
||||
velocity = TBDC_BOWCASTER_VELOCITY;
|
||||
}
|
||||
|
|
|
@ -73,7 +73,7 @@ void WP_FireBryarPistol( gentity_t *ent, qboolean alt_fire )
|
|||
}
|
||||
|
||||
float velocity = BRYAR_PISTOL_VEL;
|
||||
if(ent->client && ent->client->ps.clientNum == 0 && g_TeamBeefDirectorsCut->value)
|
||||
if(ent->client && ent->client->ps.clientNum == 0 && g_TeamBeefDirectorsCut->integer == 1)
|
||||
{
|
||||
velocity = TBDC_BRYAR_PISTOL_VEL;
|
||||
}
|
||||
|
|
|
@ -56,7 +56,7 @@ static void WP_DEMP2_MainFire( gentity_t *ent )
|
|||
WP_TraceSetStart( ent, start, vec3_origin, vec3_origin );//make sure our start point isn't on the other side of a wall
|
||||
|
||||
float velocity = DEMP2_VELOCITY;
|
||||
if(ent->client && ent->client->ps.clientNum == 0 && g_TeamBeefDirectorsCut->value)
|
||||
if(ent->client && ent->client->ps.clientNum == 0 && g_TeamBeefDirectorsCut->integer == 1)
|
||||
{
|
||||
velocity = TBDC_DEMP2_VELOCITY;
|
||||
}
|
||||
|
|
|
@ -45,7 +45,7 @@ static void WP_RepeaterMainFire( gentity_t *ent, vec3_t dir, vec3_t start )
|
|||
WP_TraceSetStart( ent, start, vec3_origin, vec3_origin );//make sure our start point isn't on the other side of a wall
|
||||
|
||||
float velocity = REPEATER_VELOCITY;
|
||||
if(ent->client && ent->client->ps.clientNum == 0 && g_TeamBeefDirectorsCut->value)
|
||||
if(ent->client && ent->client->ps.clientNum == 0 && g_TeamBeefDirectorsCut->integer == 1)
|
||||
{
|
||||
velocity = TBDC_REPEATER_VELOCITY;
|
||||
}
|
||||
|
@ -114,7 +114,7 @@ static void WP_RepeaterAltFire( gentity_t *ent )
|
|||
else
|
||||
{
|
||||
float velocity = REPEATER_ALT_VELOCITY;
|
||||
if(ent->client && ent->client->ps.clientNum == 0 && g_TeamBeefDirectorsCut->value)
|
||||
if(ent->client && ent->client->ps.clientNum == 0 && g_TeamBeefDirectorsCut->integer == 1)
|
||||
{
|
||||
velocity = TBDC_REPEATER_ALT_VELOCITY;
|
||||
}
|
||||
|
|
|
@ -149,7 +149,7 @@ void WP_FireRocket( gentity_t *ent, qboolean alt_fire )
|
|||
int damage = weaponData[WP_ROCKET_LAUNCHER].damage;
|
||||
float vel = ROCKET_VELOCITY;
|
||||
|
||||
if(ent->client && ent->client->ps.clientNum == 0 && g_TeamBeefDirectorsCut->value)
|
||||
if(ent->client && ent->client->ps.clientNum == 0 && g_TeamBeefDirectorsCut->integer == 1)
|
||||
{
|
||||
vel = TBDC_ROCKET_VELOCITY;
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ CONFIG W:\bin\striped.cfg
|
|||
ID 100
|
||||
REFERENCE MENUS_VR
|
||||
DESCRIPTION "VR Menu Localizations"
|
||||
COUNT 158
|
||||
COUNT 161
|
||||
INDEX 0
|
||||
{
|
||||
REFERENCE COMMON_CONTROLS_ITEM
|
||||
|
@ -794,3 +794,18 @@ INDEX 157
|
|||
REFERENCE MODS_WARNING_CONFIRM
|
||||
TEXT_LANGUAGE1 "Continue"
|
||||
}
|
||||
INDEX 158
|
||||
{
|
||||
REFERENCE TBDC_BUMMSER
|
||||
TEXT_LANGUAGE1 "Slower NPCs (Easy)-Vanilla Player Guns"
|
||||
}
|
||||
INDEX 159
|
||||
{
|
||||
REFERENCE TBDC_BAGGYG
|
||||
TEXT_LANGUAGE1 "Vanilla NPCs (Hard)-Stronger Player Guns"
|
||||
}
|
||||
INDEX 160
|
||||
{
|
||||
REFERENCE TBDC_VANILLA
|
||||
TEXT_LANGUAGE1 "Vanilla NPCs and Guns"
|
||||
}
|
|
@ -2717,12 +2717,47 @@
|
|||
{
|
||||
name none
|
||||
group difficulty
|
||||
type ITEM_TYPE_YESNO
|
||||
type ITEM_TYPE_TEXT
|
||||
style WINDOW_STYLE_EMPTY
|
||||
text @MENUS_VR_DIRECTORS_CUT_ITEM
|
||||
cvar "g_TeamBeefDirectorsCut"
|
||||
rect 315 191 300 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 151
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 0
|
||||
textaligny -2
|
||||
font 2
|
||||
textscale 0.8
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
mouseenter
|
||||
{
|
||||
|
||||
}
|
||||
mouseexit
|
||||
{
|
||||
|
||||
}
|
||||
action
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name none
|
||||
group difficulty
|
||||
type ITEM_TYPE_MULTI
|
||||
text " "
|
||||
cvar "g_TeamBeefDirectorsCut"
|
||||
cvarFloatList
|
||||
{
|
||||
@MENUS_VR_TBDC_BUMMSER 0
|
||||
@MENUS_VR_TBDC_BAGGYG 1
|
||||
@MENUS_VR_TBDC_VANILLA 2
|
||||
}
|
||||
rect 315 211 300 20
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 0
|
||||
textaligny -2
|
||||
font 2
|
||||
textscale 0.8
|
||||
|
@ -2737,12 +2772,12 @@
|
|||
|
||||
mouseenter
|
||||
{
|
||||
show highlight2
|
||||
show highlight3
|
||||
}
|
||||
|
||||
mouseexit
|
||||
{
|
||||
hide highlight2
|
||||
hide highlight3
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -2754,7 +2789,7 @@
|
|||
type ITEM_TYPE_YESNO
|
||||
text @MENUS_VR_LASER_AUTODEFLECTING_ITEM
|
||||
cvar "g_saberAutoDeflect1stPerson"
|
||||
rect 315 231 300 20
|
||||
rect 315 251 300 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 151
|
||||
textaligny -2
|
||||
|
@ -2771,12 +2806,12 @@
|
|||
|
||||
mouseenter
|
||||
{
|
||||
show highlight4
|
||||
show highlight5
|
||||
}
|
||||
|
||||
mouseexit
|
||||
{
|
||||
hide highlight4
|
||||
hide highlight5
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -2795,45 +2830,6 @@
|
|||
@MENUS_VR_SABER_REALISM_CRITICAL 2
|
||||
@MENUS_VR_SABER_REALISM_INSTANT 3
|
||||
}
|
||||
rect 315 251 300 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 151
|
||||
textaligny -2
|
||||
font 2
|
||||
textscale 0.8
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
// appearance_slot 1
|
||||
descText @MENUS_VR_SABER_REALISM_DESC
|
||||
action
|
||||
{
|
||||
play sound/interface/button1
|
||||
}
|
||||
|
||||
mouseenter
|
||||
{
|
||||
show highlight5
|
||||
}
|
||||
|
||||
mouseexit
|
||||
{
|
||||
hide highlight5
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name none
|
||||
group difficulty
|
||||
type ITEM_TYPE_MULTI
|
||||
text @MENUS_VR_FENCING_SPEED_ITEM
|
||||
cvar "g_saberAnimSpeed"
|
||||
cvarFloatList
|
||||
{
|
||||
@MENUS_VR_FENCING_SPEED_SLOWER 1.0
|
||||
@MENUS_VR_FENCING_SPEED_DEFAULT 1.2
|
||||
@MENUS_VR_FENCING_SPEED_FASTER 1.3
|
||||
}
|
||||
rect 315 271 300 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 151
|
||||
|
@ -2843,7 +2839,7 @@
|
|||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
// appearance_slot 1
|
||||
descText @MENUS_VR_FENCING_SPEED_DESC
|
||||
descText @MENUS_VR_SABER_REALISM_DESC
|
||||
action
|
||||
{
|
||||
play sound/interface/button1
|
||||
|
@ -2860,6 +2856,45 @@
|
|||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name none
|
||||
group difficulty
|
||||
type ITEM_TYPE_MULTI
|
||||
text @MENUS_VR_FENCING_SPEED_ITEM
|
||||
cvar "g_saberAnimSpeed"
|
||||
cvarFloatList
|
||||
{
|
||||
@MENUS_VR_FENCING_SPEED_SLOWER 1.0
|
||||
@MENUS_VR_FENCING_SPEED_DEFAULT 1.2
|
||||
@MENUS_VR_FENCING_SPEED_FASTER 1.3
|
||||
}
|
||||
rect 315 291 300 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 151
|
||||
textaligny -2
|
||||
font 2
|
||||
textscale 0.8
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
// appearance_slot 1
|
||||
descText @MENUS_VR_FENCING_SPEED_DESC
|
||||
action
|
||||
{
|
||||
play sound/interface/button1
|
||||
}
|
||||
|
||||
mouseenter
|
||||
{
|
||||
show highlight7
|
||||
}
|
||||
|
||||
mouseexit
|
||||
{
|
||||
hide highlight7
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name none
|
||||
|
@ -2874,7 +2909,7 @@
|
|||
@MENUS2_JEDI_KNIGHT 2
|
||||
@MENUS1_JEDI_MASTER 3
|
||||
}
|
||||
rect 315 311 300 20
|
||||
rect 315 331 300 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 151
|
||||
textaligny -2
|
||||
|
@ -2891,11 +2926,11 @@
|
|||
|
||||
mouseenter
|
||||
{
|
||||
show highlight8
|
||||
show highlight9
|
||||
}
|
||||
mouseexit
|
||||
{
|
||||
hide highlight8
|
||||
hide highlight9
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -2813,12 +2813,47 @@
|
|||
{
|
||||
name none
|
||||
group difficulty
|
||||
type ITEM_TYPE_YESNO
|
||||
type ITEM_TYPE_TEXT
|
||||
style WINDOW_STYLE_EMPTY
|
||||
text @MENUS_VR_DIRECTORS_CUT_ITEM
|
||||
cvar "g_TeamBeefDirectorsCut"
|
||||
rect 315 191 300 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 151
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 0
|
||||
textaligny -2
|
||||
font 2
|
||||
textscale 0.8
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
mouseenter
|
||||
{
|
||||
|
||||
}
|
||||
mouseexit
|
||||
{
|
||||
|
||||
}
|
||||
action
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name none
|
||||
group difficulty
|
||||
type ITEM_TYPE_MULTI
|
||||
text " "
|
||||
cvar "g_TeamBeefDirectorsCut"
|
||||
cvarFloatList
|
||||
{
|
||||
@MENUS_VR_TBDC_BUMMSER 0
|
||||
@MENUS_VR_TBDC_BAGGYG 1
|
||||
@MENUS_VR_TBDC_VANILLA 2
|
||||
}
|
||||
rect 315 211 300 20
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 0
|
||||
textaligny -2
|
||||
font 2
|
||||
textscale 0.8
|
||||
|
@ -2833,12 +2868,12 @@
|
|||
|
||||
mouseenter
|
||||
{
|
||||
show highlight2
|
||||
show highlight3
|
||||
}
|
||||
|
||||
mouseexit
|
||||
{
|
||||
hide highlight2
|
||||
hide highlight3
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -2850,7 +2885,7 @@
|
|||
type ITEM_TYPE_YESNO
|
||||
text @MENUS_VR_LASER_AUTODEFLECTING_ITEM
|
||||
cvar "g_saberAutoDeflect1stPerson"
|
||||
rect 315 231 300 20
|
||||
rect 315 251 300 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 151
|
||||
textaligny -2
|
||||
|
@ -2867,12 +2902,12 @@
|
|||
|
||||
mouseenter
|
||||
{
|
||||
show highlight4
|
||||
show highlight5
|
||||
}
|
||||
|
||||
mouseexit
|
||||
{
|
||||
hide highlight4
|
||||
hide highlight5
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -2891,7 +2926,7 @@
|
|||
@MENUS_VR_SABER_REALISM_CRITICAL 2
|
||||
@MENUS_VR_SABER_REALISM_INSTANT 3
|
||||
}
|
||||
rect 315 251 300 20
|
||||
rect 315 271 300 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 151
|
||||
textaligny -2
|
||||
|
@ -2908,12 +2943,12 @@
|
|||
|
||||
mouseenter
|
||||
{
|
||||
show highlight5
|
||||
show highlight6
|
||||
}
|
||||
|
||||
mouseexit
|
||||
{
|
||||
hide highlight5
|
||||
hide highlight6
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2930,7 +2965,7 @@
|
|||
@MENUS_VR_FENCING_SPEED_DEFAULT 1.2
|
||||
@MENUS_VR_FENCING_SPEED_FASTER 1.3
|
||||
}
|
||||
rect 315 271 300 20
|
||||
rect 315 311 300 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 151
|
||||
textaligny -2
|
||||
|
@ -2947,12 +2982,12 @@
|
|||
|
||||
mouseenter
|
||||
{
|
||||
show highlight6
|
||||
show highlight8
|
||||
}
|
||||
|
||||
mouseexit
|
||||
{
|
||||
hide highlight6
|
||||
hide highlight8
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue