char.txt
weaploss [int]
0 - (default) – Current hardcoded behavior. Weapon is lost and dropped on any incoming hit.
1 – Weapon is lost on knockdown.
2 – Weapon is only lost on player death.
3 - Weapon is only lost when level ends or the character is changed at continue screen. This depends on how the modder configured there levels and weather or not they had weapons upon startup.