Search for: Function GetPlayerDamage
And you'll find this:
Code:
Function GetPlayerDamage(ByVal Index As Long) As Long
Dim WeaponSlot As Long
GetPlayerDamage = 0
' Check for subscript out of range
If IsPlaying(Index) = False Or Index <= 0 Or Index > MAX_PLAYERS Then
Exit Function
End If
GetPlayerDamage = Int(GetPlayerSTR(Index) / 2)
If GetPlayerDamage <= 0 Then
GetPlayerDamage = 1
End If
If GetPlayerWeaponSlot(Index) > 0 Then
WeaponSlot = GetPlayerWeaponSlot(Index)
GetPlayerDamage = GetPlayerDamage + Item(GetPlayerInvItemNum(Index, WeaponSlot)).Data2
Call SetPlayerInvItemDur(Index, WeaponSlot, GetPlayerInvItemDur(Index, WeaponSlot) - 1)
If GetPlayerInvItemDur(Index, WeaponSlot) <= 0 Then
Call PlayerMsg(Index, "Your " & Trim$(Item(GetPlayerInvItemNum(Index, WeaponSlot)).Name) & " has broken.", Yellow)
Call TakeItem(Index, GetPlayerInvItemNum(Index, WeaponSlot), 0)
Else
If GetPlayerInvItemDur(Index, WeaponSlot) <= 5 Then
Call PlayerMsg(Index, "Your " & Trim$(Item(GetPlayerInvItemNum(Index, WeaponSlot)).Name) & " is about to break!", Yellow)
End If
End If
End If
End Function
Then you can just search for GetPlayerDamage and you will find all the places that the damage is used.