Remove health adjustment from setDisguiseModel.

It wasn't in use anymore anyways.
master
Icedream 2016-04-09 06:27:55 +02:00
parent a2418e0303
commit 5450a51907
1 changed files with 1 additions and 10 deletions

View File

@ -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();