sendStats.src

Open discussion forum. For topics that do not fit anywhere else.
Locked
User avatar
OldnGrey
POL Expert
Posts: 657
Joined: Sat Feb 04, 2006 6:26 pm

sendStats.src

Post by OldnGrey »

sendStats currently expects you to have MinDam and MaxDam entered into the itemdesc.cfg file for weapons. However the distro doesn't have them.

Can I suggest you use an 096 feature to calculate it instead?
In the weapons section for both 1 and 2 handed weapons:

remove:

Code: Select all

var cfg := ReadConfigFile(":*:itemdesc");
mindmg := CInt(cfg[weaponone.objtype].MinDam) + weaponone.dmg_mod;
maxdmg := CInt(cfg[weaponone.objtype].MaxDam) + weaponone.dmg_mod;
replace with:

Code: Select all

var weapinfo := GetItemDescriptor(weaponone.objtype);
mindmg := weapinfo.MinDamage + weaponone.dmg_mod;
maxdmg := weapinfo.MaxDamage + weaponone.dmg_mod;
Do similar for weapontwo
User avatar
OldnGrey
POL Expert
Posts: 657
Joined: Sat Feb 04, 2006 6:26 pm

Post by OldnGrey »

My fix is cuter than Austins.....
Locked