Home
last modified time | relevance | path

Searched refs:FP_SABER_OFFENSE (Results 1 – 25 of 34) sorted by relevance

12

/dports/games/openjk/OpenJK-07675e2/codemp/ui/
H A Dui_force.c334 if ( x == FP_LEVITATION || x == FP_SABER_OFFENSE ) in UpdateForceUsed()
355 if ( uiForcePowersRank[FP_SABER_OFFENSE] < 1 ) in UpdateForceUsed()
357 uiForcePowersRank[FP_SABER_OFFENSE]=1; in UpdateForceUsed()
391 bgForcePowerCost[FP_SABER_OFFENSE][FORCE_LEVEL_1] = 0; in UpdateForceUsed()
394 if (uiForcePowersRank[FP_SABER_OFFENSE]<1) in UpdateForceUsed()
396 uiForcePowersRank[FP_SABER_OFFENSE]=1; in UpdateForceUsed()
416 if (uiForcePowersRank[FP_SABER_OFFENSE]<1) in UpdateForceUsed()
633 uiForcePowersRank[FP_SABER_OFFENSE]=1; in UI_ReadLegalForce()
716 if (i_f == FP_SABER_OFFENSE && in UI_UpdateForcePowers()
1031 if (uiForcePowersRank[FP_SABER_OFFENSE] < 1) in UI_ForcePowerRank_HandleKey()
[all …]
H A Dui_main.c2105 if (i != FP_LEVITATION && i != FP_SABER_OFFENSE && i != FP_SABER_DEFENSE) in UI_SetForceDisabled()
2221 if (uiForcePowersRank[FP_SABER_OFFENSE] > 0 || ui_freeSaber.integer) in UpdateForceStatus()
6522 (i != FP_SABER_OFFENSE)) in UI_RunMenuScript()
6570 (i != FP_SABER_OFFENSE)) in UI_RunMenuScript()
10099 if (ui_freeSaber.integer && uiForcePowersRank[FP_SABER_OFFENSE] < 1) in UI_Refresh()
10101 uiForcePowersRank[FP_SABER_OFFENSE] = 1; in UI_Refresh()
10115 bgForcePowerCost[FP_SABER_OFFENSE][FORCE_LEVEL_1] = 0; in UI_Refresh()
10120 bgForcePowerCost[FP_SABER_OFFENSE][FORCE_LEVEL_1] = 1; in UI_Refresh()
/dports/games/openjk/OpenJK-07675e2/codeJK2/game/
H A Dg_svcmds.cpp320 if ( self->client->ps.forcePowerLevel[FP_SABER_OFFENSE] == FORCE_LEVEL_1 ) in Svcmd_SaberAttackCycle_f()
324 else if ( self->client->ps.forcePowerLevel[FP_SABER_OFFENSE] == FORCE_LEVEL_2 ) in Svcmd_SaberAttackCycle_f()
333 if ( saberAnimLevel > self->client->ps.forcePowerLevel[FP_SABER_OFFENSE] ) in Svcmd_SaberAttackCycle_f()
384 for ( int i = FP_HEAL; i <= FP_SABER_OFFENSE; i++ ) in Svcmd_SetForceAll_f()
394 Svcmd_ForceSetLevel_f( FP_SABER_OFFENSE ); in Svcmd_SetSaberAll_f()
577 { "setSaberOffense", Svcmd_ForceSetLevel_f<FP_SABER_OFFENSE>, CMD_CHEAT },
H A Dwp_saber.cpp8433 ent->client->ps.forcePowerLevel[FP_SABER_OFFENSE] = FORCE_LEVEL_3; in WP_InitForcePowers()
8444 ent->client->ps.forcePowerLevel[FP_SABER_OFFENSE] = FORCE_LEVEL_3; in WP_InitForcePowers()
8455 ent->client->ps.forcePowerLevel[FP_SABER_OFFENSE] = FORCE_LEVEL_3; in WP_InitForcePowers()
8474 ent->client->ps.forcePowerLevel[FP_SABER_OFFENSE] = FORCE_LEVEL_3; in WP_InitForcePowers()
8485 ent->client->ps.forcePowerLevel[FP_SABER_OFFENSE] = FORCE_LEVEL_3; in WP_InitForcePowers()
8499 ent->client->ps.forcePowerLevel[FP_SABER_OFFENSE] = FORCE_LEVEL_2; in WP_InitForcePowers()
8508 ent->client->ps.forcePowerLevel[FP_SABER_OFFENSE] = FORCE_LEVEL_1; in WP_InitForcePowers()
8517 ent->client->ps.forcePowerLevel[FP_SABER_OFFENSE] = FORCE_LEVEL_1; in WP_InitForcePowers()
8522 …client->ps.forcePowersKnown = ( 1 << FP_SPEED)|( 1 << FP_SABER_DEFENSE )|( 1 << FP_SABER_OFFENSE ); in WP_InitForcePowers()
8526 ent->client->ps.forcePowerLevel[FP_SABER_OFFENSE] = FORCE_LEVEL_1; in WP_InitForcePowers()
[all …]
H A DAI_Jedi.cpp715 if ( newLevel > self->client->ps.forcePowerLevel[FP_SABER_OFFENSE] ) in Jedi_AdjustSaberAnimLevel()
717 self->client->ps.saberAnimLevel = self->client->ps.forcePowerLevel[FP_SABER_OFFENSE]; in Jedi_AdjustSaberAnimLevel()
H A Dbg_pmove.cpp6353 if ( Q_irand( FORCE_LEVEL_1, FORCE_LEVEL_2 ) < pm->ps->forcePowerLevel[FP_SABER_OFFENSE] ) in PM_SaberLockBreak()
6416 return gent->client->ps.forcePowerLevel[FP_SABER_OFFENSE]+Q_irand(0,g_spskill->integer); in G_SaberLockStrength()
6421 return gent->client->ps.forcePowerLevel[FP_SABER_OFFENSE]+Q_irand(0,g_spskill->integer); in G_SaberLockStrength()
/dports/games/openjk/OpenJK-07675e2/codemp/game/
H A Dbg_misc.c217 FP_SABER_OFFENSE,
507 (i == FP_SABER_OFFENSE && freeSaber) || in BG_LegalizedForcePowers()
539 if (c == FP_SABER_OFFENSE && in BG_LegalizedForcePowers()
552 ( (whichOne != FP_SABER_OFFENSE || !freeSaber) && in BG_LegalizedForcePowers()
570 (c != FP_SABER_OFFENSE || !freeSaber) && in BG_LegalizedForcePowers()
604 (i == FP_SABER_OFFENSE && freeSaber) || in BG_LegalizedForcePowers()
617 if (final_Powers[FP_SABER_OFFENSE] < 1) in BG_LegalizedForcePowers()
618 final_Powers[FP_SABER_OFFENSE] = 1; in BG_LegalizedForcePowers()
639 if (fpDisabled & (1 << FP_SABER_OFFENSE)) in BG_LegalizedForcePowers()
640 final_Powers[FP_SABER_OFFENSE] = 3; in BG_LegalizedForcePowers()
[all …]
H A Dw_force.c404 …else if ( i != FP_LEVITATION && i != FP_SABER_OFFENSE && i != FP_SABER_DEFENSE && i != FP_SABERTHR… in WP_InitForcePowers()
471 if (ent->client->ps.fd.forcePowerLevel[FP_SABER_OFFENSE] < FORCE_LEVEL_1) in WP_SpawnInitForcePowers()
473 ent->client->ps.fd.forcePowerLevel[FP_SABER_OFFENSE] = FORCE_LEVEL_1; in WP_SpawnInitForcePowers()
722 case FP_SABER_OFFENSE: in WP_ForcePowerUsable()
1050 case FP_SABER_OFFENSE: in WP_ForcePowerStart()
4334 case FP_SABER_OFFENSE: in WP_ForcePowerRun()
4521 case FP_SABER_OFFENSE: in WP_DoSpecificPower()
4763 … ((self->client->ps.fd.forcePowersKnown & (1 << i)) && i != FP_LEVITATION && i != FP_SABER_OFFENSE) in HolocronUpdate()
4784 else if (i == FP_SABER_OFFENSE) in HolocronUpdate()
4822 if (self->client->ps.fd.forcePowerLevel[FP_SABER_OFFENSE] < FORCE_LEVEL_1) in HolocronUpdate()
[all …]
H A Dg_client.c3161 …SIEGE && ent->client->ps.fd.saberAnimLevel > ent->client->ps.fd.forcePowerLevel[FP_SABER_OFFENSE] ) in ClientSpawn()
3162 …rawAnimLevel = ent->client->sess.saberLevel = ent->client->ps.fd.forcePowerLevel[FP_SABER_OFFENSE]; in ClientSpawn()
3188 …SIEGE && ent->client->ps.fd.saberAnimLevel > ent->client->ps.fd.forcePowerLevel[FP_SABER_OFFENSE] ) in ClientSpawn()
3189 …rawAnimLevel = ent->client->sess.saberLevel = ent->client->ps.fd.forcePowerLevel[FP_SABER_OFFENSE]; in ClientSpawn()
3481 if (client->ps.fd.forcePowerLevel[FP_SABER_OFFENSE]) in ClientSpawn()
H A Dbg_saga.c132 ENUM2STRING(FP_SABER_OFFENSE),
H A Dw_saber.c328 …(!g_entities[ent->r.ownerNum].client->ps.fd.forcePowerLevel[FP_SABER_OFFENSE] && g_entities[ent->r… in SaberUpdateSelf()
4577 …ntityNum].client->ps.fd.forcePowerLevel[FP_SABER_OFFENSE] - self->client->ps.fd.forcePowerLevel[FP… in CheckSaberDamage()
5047 …->client->ps.fd.forcePowerLevel[FP_SABER_OFFENSE])-(defendStr+otherOwner->client->ps.fd.forcePower… in CheckSaberDamage()
5119 …if ( attackStr+self->client->ps.fd.forcePowerLevel[FP_SABER_OFFENSE] > otherIdleStr+otherOwner->cl… in CheckSaberDamage()
6373 …(notDisowned || saberOwn->health < 1 || !saberOwn->client->ps.fd.forcePowerLevel[FP_SABER_OFFENSE]) in DownedSaberThink()
6941 if (saberOwner->health < 1 || !saberOwner->client->ps.fd.forcePowerLevel[FP_SABER_OFFENSE]) in saberBackToOwner()
7142 if (saberOwn->health < 1 || !saberOwn->client->ps.fd.forcePowerLevel[FP_SABER_OFFENSE]) in saberFirstThrown()
H A Dg_misc.c902 …if (self->count != FP_SABER_OFFENSE && self->count != FP_SABER_DEFENSE && self->count != FP_SABERT… in HolocronTouch()
1057 if (ent->count == FP_SABER_OFFENSE || in SP_misc_holocron()
H A DNPC_AI_Jedi.c1370 if ( newLevel > self->client->ps.fd.forcePowerLevel[FP_SABER_OFFENSE] ) in Jedi_AdjustSaberAnimLevel()
1372 self->client->ps.fd.saberAnimLevel = self->client->ps.fd.forcePowerLevel[FP_SABER_OFFENSE]; in Jedi_AdjustSaberAnimLevel()
/dports/games/openjk/OpenJK-07675e2/code/game/
H A Dg_svcmds.cpp651 Svcmd_ForceSetLevel_f( FP_SABER_OFFENSE ); in Svcmd_SetSaberAll_f()
921 { "setSaberOffense", Svcmd_ForceSetLevel_f<FP_SABER_OFFENSE>, CMD_CHEAT },
H A Dg_target.cpp994 gi.cvar_set("ui_stats_offense", va("%d",client->sess.missionStats.forceUsed[FP_SABER_OFFENSE])); in set_mission_stats_cvars()
H A Dwp_saber.cpp5261 …rPowerLevel < FORCE_LEVEL_3 && hitOwner->client->ps.forcePowerLevel[FP_SABER_OFFENSE] > FORCE_LEVE… in WP_SaberDamageTrace()
5262 …rPowerLevel < FORCE_LEVEL_3 && hitOwner->client->ps.forcePowerLevel[FP_SABER_OFFENSE] > FORCE_LEVE… in WP_SaberDamageTrace()
5263 …&& entPowerLevel < FORCE_LEVEL_3 && ent->client->ps.forcePowerLevel[FP_SABER_OFFENSE] > FORCE_LEVE… in WP_SaberDamageTrace()
5264 …&& entPowerLevel < FORCE_LEVEL_3 && ent->client->ps.forcePowerLevel[FP_SABER_OFFENSE] > FORCE_LEVE… in WP_SaberDamageTrace()
5309 …SABER_DEFENSE]>FORCE_LEVEL_2&&Q_irand(0,hitOwner->client->ps.forcePowerLevel[FP_SABER_OFFENSE]))) ) in WP_SaberDamageTrace()
5349 …RCE_LEVEL_2 || Q_irand( 0, Q_max(0, ent->client->ps.forcePowerLevel[FP_SABER_OFFENSE] - hitOwner->… in WP_SaberDamageTrace()
14215 case FP_SABER_OFFENSE: in WP_CheckForcedPowers()
14414 ent->client->ps.forcePowerLevel[FP_SABER_OFFENSE] = FORCE_LEVEL_1; in WP_InitForcePowers()
14418 …P_LIGHTNING)|( 1 << FP_SABERTHROW)|( 1 << FP_SABER_DEFENSE )|( 1 << FP_SABER_OFFENSE )|( 1<< FP_RA… in WP_InitForcePowers()
14435 ent->client->ps.forcePowerLevel[FP_SABER_OFFENSE] = FORCE_LEVEL_3; in WP_InitForcePowers()
H A Dbg_pmove.cpp10293 if ( Q_irand( FORCE_LEVEL_1, FORCE_LEVEL_2 ) < pm->ps->forcePowerLevel[FP_SABER_OFFENSE] ) in PM_SaberLockBreak()
10425 strength += gent->client->ps.forcePowerLevel[FP_SABER_OFFENSE]+Q_irand(0,g_spskill->integer); in G_SaberLockStrength()
10443 …strength += gent->client->ps.forcePowerLevel[FP_SABER_OFFENSE]+Q_irand(0,g_spskill->integer)+Q_ira… in G_SaberLockStrength()
12089 G_DrainPowerForSpecialMove( pm->gent, FP_SABER_OFFENSE, SABER_ALT_ATTACK_POWER_FB ); in PM_WeaponLightsaber()
12435 …G_DrainPowerForSpecialMove( pm->gent, FP_SABER_OFFENSE, SABER_ALT_ATTACK_POWER, qtrue );//FP_SPEED… in PM_WeaponLightsaber()
12445 …G_DrainPowerForSpecialMove( pm->gent, FP_SABER_OFFENSE, SABER_ALT_ATTACK_POWER, qtrue );//FP_SPEED… in PM_WeaponLightsaber()
12651 && (Q_irand( 0, pm->ps->forcePowerLevel[FP_SABER_OFFENSE]-1 ) in PM_WeaponLightsaber()
H A DNPC_stats.cpp84 ENUM2STRING(FP_SABER_OFFENSE),
/dports/games/openjk/OpenJK-07675e2/codemp/qcommon/
H A Dq_shared.h382 FP_SABER_OFFENSE, enumerator
/dports/games/openjk/OpenJK-07675e2/code/ui/
H A Dui_main.cpp4498 { "saboff", FP_SABER_OFFENSE },
4765 uiInfo.forcePowerLevel[FP_SABER_OFFENSE]=1; in UI_DemoSetForceLevels()
4788 uiInfo.forcePowerLevel[FP_SABER_OFFENSE]=3; in UI_DemoSetForceLevels()
/dports/games/openjk/OpenJK-07675e2/codemp/cgame/
H A Dcg_ents.c1704 if ((s1->modelindex+128) == FP_SABER_OFFENSE || in CG_General()
1768 if ((s1->modelindex+128) == FP_SABER_OFFENSE || in CG_General()
H A Dcg_event.c1876 if (index != FP_SABER_OFFENSE && index != FP_SABER_DEFENSE && index != FP_SABERTHROW && in CG_EntityEvent()
/dports/games/openjk/OpenJK-07675e2/codeJK2/cgame/
H A Dcg_main.cpp3198 FP_SABER_OFFENSE,
/dports/games/openjk/OpenJK-07675e2/code/qcommon/
H A Dq_shared.h750 FP_SABER_OFFENSE, enumerator
/dports/games/openjk/OpenJK-07675e2/code/cgame/
H A Dcg_main.cpp3711 FP_SABER_OFFENSE,

12