mirror of
https://github.com/DrBeef/JKXR.git
synced 2024-11-23 04:22:27 +00:00
Give 999 health cheat
This commit is contained in:
parent
dfa3187666
commit
cefed74dba
7 changed files with 57 additions and 57 deletions
|
@ -175,7 +175,7 @@ void G_Give( gentity_t *ent, const char *name, const char *args, int argc )
|
|||
if ( give_all || !Q_stricmp( name, "health") )
|
||||
{
|
||||
if ( argc == 3 )
|
||||
ent->health = Com_Clampi( 1, ent->client->ps.stats[STAT_MAX_HEALTH], atoi( args ) );
|
||||
ent->health = Com_Clampi( 1, 999, atoi( args ) );
|
||||
else
|
||||
ent->health = ent->client->ps.stats[STAT_MAX_HEALTH];
|
||||
if ( !give_all )
|
||||
|
|
|
@ -174,7 +174,7 @@ void G_Give( gentity_t *ent, const char *name, const char *args, int argc )
|
|||
if ( give_all || !Q_stricmp( name, "health") )
|
||||
{
|
||||
if ( argc == 3 )
|
||||
ent->health = Com_Clampi( 1, ent->client->ps.stats[STAT_MAX_HEALTH], atoi( args ) );
|
||||
ent->health = Com_Clampi( 1, 999, atoi( args ) );
|
||||
else
|
||||
ent->health = ent->client->ps.stats[STAT_MAX_HEALTH];
|
||||
if ( !give_all )
|
||||
|
|
|
@ -247,18 +247,18 @@ LANG_ENGLISH "Replenish Ammo"
|
|||
REFERENCE CHEATS_GIVE_AMMO_DESC
|
||||
LANG_ENGLISH "Replenishes ammunition."
|
||||
|
||||
REFERENCE CHEATS_UNLOCK_SABER_SKILLS_ITEM
|
||||
LANG_ENGLISH "Unlock Lightsaber Skills"
|
||||
|
||||
REFERENCE CHEATS_UNLOCK_SABER_SKILLS_DESC
|
||||
LANG_ENGLISH "Unlocks all lightsaber skills."
|
||||
|
||||
REFERENCE CHEATS_GIVE_WEAPONS_ITEM
|
||||
LANG_ENGLISH "Give All Weapons"
|
||||
|
||||
REFERENCE CHEATS_GIVE_WEAPONS_DESC
|
||||
LANG_ENGLISH "Gives all weapons."
|
||||
|
||||
REFERENCE CHEATS_GIVE_MAX_HEALTH_ITEM
|
||||
LANG_ENGLISH "Give Maxed-Out Health"
|
||||
|
||||
REFERENCE CHEATS_GIVE_MAX_HEALTH_DESC
|
||||
LANG_ENGLISH "Sets health to 999."
|
||||
|
||||
REFERENCE CHEATS_UNLIMITED_POWER_ITEM
|
||||
LANG_ENGLISH "Unlimited Force Power"
|
||||
|
||||
|
|
|
@ -325,14 +325,6 @@ REFERENCE CHEATS_GIVE_AMMO_DESC
|
|||
LANG_ENGLISH "Replenishes ammunition."
|
||||
LANG_FRENCH "#same"
|
||||
|
||||
REFERENCE CHEATS_UNLOCK_SABER_SKILLS_ITEM
|
||||
LANG_ENGLISH "Unlock Lightsaber Skills"
|
||||
LANG_FRENCH "#same"
|
||||
|
||||
REFERENCE CHEATS_UNLOCK_SABER_SKILLS_DESC
|
||||
LANG_ENGLISH "Unlocks all lightsaber skills."
|
||||
LANG_FRENCH "#same"
|
||||
|
||||
REFERENCE CHEATS_GIVE_WEAPONS_ITEM
|
||||
LANG_ENGLISH "Give All Weapons"
|
||||
LANG_FRENCH "#same"
|
||||
|
@ -341,6 +333,14 @@ REFERENCE CHEATS_GIVE_WEAPONS_DESC
|
|||
LANG_ENGLISH "Gives all weapons."
|
||||
LANG_FRENCH "#same"
|
||||
|
||||
REFERENCE CHEATS_GIVE_MAX_HEALTH_ITEM
|
||||
LANG_ENGLISH "Give Maxed-Out Health"
|
||||
LANG_FRENCH "#same"
|
||||
|
||||
REFERENCE CHEATS_GIVE_MAX_HEALTH_DESC
|
||||
LANG_ENGLISH "Sets health to 999."
|
||||
LANG_FRENCH "#same"
|
||||
|
||||
REFERENCE CHEATS_UNLIMITED_POWER_ITEM
|
||||
LANG_ENGLISH "Unlimited Force Power"
|
||||
LANG_FRENCH "#same"
|
||||
|
|
|
@ -325,14 +325,6 @@ REFERENCE CHEATS_GIVE_AMMO_DESC
|
|||
LANG_ENGLISH "Replenishes ammunition."
|
||||
LANG_GERMAN "#same"
|
||||
|
||||
REFERENCE CHEATS_UNLOCK_SABER_SKILLS_ITEM
|
||||
LANG_ENGLISH "Unlock Lightsaber Skills"
|
||||
LANG_GERMAN "#same"
|
||||
|
||||
REFERENCE CHEATS_UNLOCK_SABER_SKILLS_DESC
|
||||
LANG_ENGLISH "Unlocks all lightsaber skills."
|
||||
LANG_GERMAN "#same"
|
||||
|
||||
REFERENCE CHEATS_GIVE_WEAPONS_ITEM
|
||||
LANG_ENGLISH "Give All Weapons"
|
||||
LANG_GERMAN "#same"
|
||||
|
@ -341,6 +333,14 @@ REFERENCE CHEATS_GIVE_WEAPONS_DESC
|
|||
LANG_ENGLISH "Gives all weapons."
|
||||
LANG_GERMAN "#same"
|
||||
|
||||
REFERENCE CHEATS_GIVE_MAX_HEALTH_ITEM
|
||||
LANG_ENGLISH "Give Maxed-Out Health"
|
||||
LANG_GERMAN "#same"
|
||||
|
||||
REFERENCE CHEATS_GIVE_MAX_HEALTH_DESC
|
||||
LANG_ENGLISH "Sets health to 999."
|
||||
LANG_GERMAN "#same"
|
||||
|
||||
REFERENCE CHEATS_UNLIMITED_POWER_ITEM
|
||||
LANG_ENGLISH "Unlimited Force Power"
|
||||
LANG_GERMAN "#same"
|
||||
|
|
|
@ -325,21 +325,21 @@ REFERENCE CHEATS_GIVE_AMMO_DESC
|
|||
LANG_ENGLISH "Replenishes ammunition."
|
||||
LANG_SPANISH "#same"
|
||||
|
||||
REFERENCE CHEATS_UNLOCK_SABER_SKILLS_ITEM
|
||||
LANG_ENGLISH "Unlock Lightsaber Skills"
|
||||
LANG_SPANISH "#same"
|
||||
|
||||
REFERENCE CHEATS_UNLOCK_SABER_SKILLS_DESC
|
||||
LANG_ENGLISH "Unlocks all lightsaber skills."
|
||||
LANG_SPANISH "#same"
|
||||
|
||||
REFERENCE CHEATS_GIVE_WEAPONS_ITEM
|
||||
LANG_ENGLISH "Give All Weapons"
|
||||
LANG_SPANISH "#same"
|
||||
|
||||
REFERENCE CHEATS_GIVE_WEAPONS_DESC
|
||||
LANG_ENGLISH "Gives all weapons."
|
||||
LANG_SPANISH "#same"
|
||||
LANG_SPANISH "#same"
|
||||
|
||||
REFERENCE CHEATS_GIVE_MAX_HEALTH_ITEM
|
||||
LANG_ENGLISH "Give Maxed-Out Health"
|
||||
LANG_SPANISH "#same"
|
||||
|
||||
REFERENCE CHEATS_GIVE_MAX_HEALTH_DESC
|
||||
LANG_ENGLISH "Sets health to 999."
|
||||
LANG_SPANISH "#same"
|
||||
|
||||
REFERENCE CHEATS_UNLIMITED_POWER_ITEM
|
||||
LANG_ENGLISH "Unlimited Force Power"
|
||||
|
|
|
@ -165,30 +165,6 @@
|
|||
style WINDOW_STYLE_EMPTY
|
||||
type ITEM_TYPE_BUTTON
|
||||
rect 340 50 200 20
|
||||
text @MENUS_VR_CHEATS_UNLOCK_SABER_SKILLS_ITEM
|
||||
descText @MENUS_VR_CHEATS_UNLOCK_SABER_SKILLS_DESC
|
||||
font 2
|
||||
textscale 1
|
||||
textalignx 100
|
||||
textalign ITEM_ALIGN_CENTER
|
||||
forecolor .509 .609 .847 1
|
||||
appearance_slot 1
|
||||
visible 1
|
||||
|
||||
action
|
||||
{
|
||||
play "sound/interface/button1.wav" ;
|
||||
exec "setSaberThrow 2; setSaberDefense 3; setSaberOffense 3;"
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name none
|
||||
group none
|
||||
style WINDOW_STYLE_EMPTY
|
||||
type ITEM_TYPE_BUTTON
|
||||
rect 340 75 200 20
|
||||
text @MENUS_VR_CHEATS_GIVE_WEAPONS_ITEM
|
||||
descText @MENUS_VR_CHEATS_GIVE_WEAPONS_DESC
|
||||
font 2
|
||||
|
@ -206,6 +182,30 @@
|
|||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name none
|
||||
group none
|
||||
style WINDOW_STYLE_EMPTY
|
||||
type ITEM_TYPE_BUTTON
|
||||
rect 340 75 200 20
|
||||
text @MENUS_VR_CHEATS_GIVE_MAX_HEALTH_ITEM
|
||||
descText @MENUS_VR_CHEATS_GIVE_MAX_HEALTH_DESC
|
||||
font 2
|
||||
textscale 1
|
||||
textalignx 100
|
||||
textalign ITEM_ALIGN_CENTER
|
||||
forecolor .509 .609 .847 1
|
||||
appearance_slot 1
|
||||
visible 1
|
||||
|
||||
action
|
||||
{
|
||||
play "sound/interface/button1.wav" ;
|
||||
exec "give health 999;"
|
||||
}
|
||||
}
|
||||
|
||||
// itemDef
|
||||
// {
|
||||
// name none
|
||||
|
|
Loading…
Reference in a new issue