Remove health adjustment from setDisguiseModel.
It wasn't in use anymore anyways.master
parent
a2418e0303
commit
5450a51907
|
@ -677,7 +677,7 @@ handleHider() {
|
|||
player GivePerk("specialty_marathon");
|
||||
}
|
||||
|
||||
setDisguiseModel(model, normalHealth)
|
||||
setDisguiseModel(model)
|
||||
{
|
||||
logPrint("setDisguiseModel called");
|
||||
|
||||
|
@ -703,15 +703,6 @@ setDisguiseModel(model, normalHealth)
|
|||
if (IsDefined(game["hiders_changed_sound"]))
|
||||
player PlaySound(game["hiders_changed_sound"]);
|
||||
|
||||
|
||||
if (IsDefined(normalHealth))
|
||||
{
|
||||
healthfrac = player.health / player.maxhealth;
|
||||
newhealth = healthfrac * normalHealth;
|
||||
player.health = newhealth;
|
||||
player.maxhealth = normalHealth;
|
||||
}
|
||||
|
||||
// Seems like changing model causes weapons to be reloaded
|
||||
player TakeAllWeapons();
|
||||
|
||||
|
|
Loading…
Reference in New Issue