MCPcopy Create free account
hub / github.com/JACoders/OpenJK / ProcessGenericCmd

Function ProcessGenericCmd

code/game/g_active.cpp:4697–4739  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4695extern void ForceAbsorb(gentity_t *ent);
4696extern void ForceHeal(gentity_t *ent);
4697static void ProcessGenericCmd(gentity_t *ent, byte cmd)
4698{
4699 switch(cmd) {
4700 default:
4701 break;
4702 case GENCMD_FORCE_HEAL:
4703 ForceHeal( ent );
4704 break;
4705 case GENCMD_FORCE_SPEED:
4706 ForceSpeed( ent );
4707 break;
4708 case GENCMD_FORCE_THROW:
4709 ForceThrow(ent, qfalse);
4710 break;
4711 case GENCMD_FORCE_PULL:
4712 ForceThrow(ent, qtrue);
4713 break;
4714 case GENCMD_FORCE_DISTRACT:
4715 ForceTelepathy(ent);
4716 break;
4717 case GENCMD_FORCE_GRIP:
4718 ForceGrip(ent);
4719 break;
4720 case GENCMD_FORCE_LIGHTNING:
4721 ForceLightning(ent);
4722 break;
4723 case GENCMD_FORCE_RAGE:
4724 ForceRage(ent);
4725 break;
4726 case GENCMD_FORCE_PROTECT:
4727 ForceProtect(ent);
4728 break;
4729 case GENCMD_FORCE_ABSORB:
4730 ForceAbsorb(ent);
4731 break;
4732 case GENCMD_FORCE_DRAIN:
4733 ForceDrain2( ent );
4734 break;
4735 case GENCMD_FORCE_SEEING:
4736 ForceSeeing(ent);
4737 break;
4738 }
4739}
4740
4741
4742/*

Callers 1

ClientThink_realFunction · 0.85

Calls 11

ForceDrain2Function · 0.85
ForceHealFunction · 0.70
ForceSpeedFunction · 0.70
ForceThrowFunction · 0.70
ForceTelepathyFunction · 0.70
ForceGripFunction · 0.70
ForceLightningFunction · 0.70
ForceRageFunction · 0.70
ForceProtectFunction · 0.70
ForceAbsorbFunction · 0.70
ForceSeeingFunction · 0.70

Tested by

no test coverage detected