Home
last modified time | relevance | path

Searched refs:treatmentLevel (Results 1 – 15 of 15) sorted by relevance

/dports/games/ufoai/ufoai-2.5-source/src/game/
H A Dg_health.cpp107 wounds->treatmentLevel[mostWounded] += woundsHealed; in G_TreatActor()
171 wounds.treatmentLevel[i] = std::max(0, wounds.treatmentLevel[i]); in G_SendWoundStats()
173 wounds.treatmentLevel[i] = std::min(255, wounds.treatmentLevel[i]); in G_SendWoundStats()
174 if (wounds.woundLevel[i] + wounds.treatmentLevel[i] > 0) in G_SendWoundStats()
193 …const int injury = (ent->chr.wounds.woundLevel[bodyPart] + ent->chr.wounds.treatmentLevel[bodyPart… in G_ActorGetInjuryPenalty()
H A Dchr_shared.h352 int treatmentLevel[BODYPART_MAXTYPE]; member
H A Dg_match.cpp166 gi.WriteByte(ent->chr.wounds.woundLevel[k] + ent->chr.wounds.treatmentLevel[k]); in G_SendCharacterData()
H A Dg_events.cpp394 gi.WriteByte(wounds.treatmentLevel[bodyPart]); in G_EventActorWound()
H A Dg_client.cpp1160 ent->chr.wounds.treatmentLevel[k] = gi.ReadByte(); in G_ClientReadCharacter()
H A Dg_ai.cpp1540 …ent->chr.wounds.treatmentLevel[ent->chr.teamDef->bodyTemplate->getRandomBodyPart()] += damage / BO… in AI_SetStats()
/dports/games/ufoai/ufoai-2.5-source/src/client/cgame/campaign/
H A Dcp_hospital.cpp38 if (wounds.treatmentLevel[bodyPart] <= 0) in HOS_HealWounds()
40 wounds.treatmentLevel[bodyPart] = std::max(0, wounds.treatmentLevel[bodyPart] - healing); in HOS_HealWounds()
H A Dcp_hospital_callbacks.cpp39 if (wounds.treatmentLevel[bodyPart] == 0) in HOS_EntryWoundData()
41 const float severity = static_cast<float>(wounds.treatmentLevel[bodyPart]) / chr.maxHP; in HOS_EntryWoundData()
44 _("Wounded %s (damage: %i)"), _(bodyData->name(bodyPart)), wounds.treatmentLevel[bodyPart]); in HOS_EntryWoundData()
54 injuryLevel += static_cast<float>(chr->wounds.treatmentLevel[i]) / chr->maxHP; in HOS_GetInjuryLevel()
H A Dcp_campaign.cpp152 memcpy(chr->wounds.treatmentLevel, c->wounds.treatmentLevel, sizeof(chr->wounds.treatmentLevel)); in CP_UpdateCharacterData()
199 c.wounds.treatmentLevel[j] = cgi->NET_ReadByte(msg); in CP_ParseCharacterData()
H A Dcp_auto_mission.cpp590 eChr->wounds.treatmentLevel[eChr->teamDef->bodyTemplate->getRandomBodyPart()] += strikeDamage; in AM_CheckFire()
/dports/games/ufoai/ufoai-2.5-source/src/client/battlescape/events/event/actor/
H A De_event_actorwound.cpp62 le->wounds.treatmentLevel[bodyPart] = treatment; in CL_ActorWound()
/dports/games/ufoai/ufoai-2.5-source/src/client/cgame/
H A Dcl_game_team.cpp737 if (!chr->wounds.treatmentLevel[k]) in GAME_SaveCharacter()
742 XML_AddInt(sWound, SAVE_CHARACTER_WOUNDSEVERITY, chr->wounds.treatmentLevel[k]); in GAME_SaveCharacter()
846 chr->wounds.treatmentLevel[bodyPart] = XML_GetInt(sWound, SAVE_CHARACTER_WOUNDSEVERITY, 0); in GAME_LoadCharacter()
H A Dcl_game.cpp1339 NET_WriteByte(buf, chr->wounds.treatmentLevel[j]); in GAME_NetSendCharacter()
/dports/games/ufoai/ufoai-2.5-source/src/client/battlescape/
H A Dcl_hud.cpp1324 if (wounds->woundLevel[bodyPart] + wounds->treatmentLevel[bodyPart] * 0.5 > woundThreshold) { in HUD_ActorWoundData_f()
H A Dcl_actor.cpp318 const int injury = (le->wounds.woundLevel[bodyPart] + le->wounds.treatmentLevel[bodyPart] * 0.5); in CL_ActorInjuryModifier()