Distro armour and weapon wear

Archive of posts related to former distro versions. Be aware that posts here do not refer to the current distro and may not work.
Locked
User avatar
OldnGrey
POL Expert
Posts: 657
Joined: Sat Feb 04, 2006 6:26 pm

Distro armour and weapon wear

Post by OldnGrey »

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;
Madman
POL Developer
Posts: 62
Joined: Sun Feb 05, 2006 7:20 pm

Post by Madman »

Done.
Locked