OldnGrey
Joined: 04 Feb 2006 Posts: 500
|
Posted: Tue Apr 08, 2008 7:40 pm Post subject: Distro armour and weapon wear |
|
|
Since using -= does not work on object refs, the combat hook and mainhit scripts in the distro need to be modified:
combatHook.src
line 262
was: shield.hp -= 1;
should be: shield.hp := shield.hp - 1;
line 313
was: armor_hit.hp -= 1;
should be: armor_hit.hp := armor_hit.hp - 1;
There appears to be no weapon wear in the hook.
mainHitScript.src
line 118
was: armor.hp -= 1;
should be: armor.hp := armor.hp - 1;
line 241
was: shield.hp -= 1;
should be: shield.hp := shield.hp - 1; |
|