igroglaz / srvmgr

https://rom2.ru
8 stars 5 forks source link

Implement partial drop when hero unit dies #64

Closed serg-bloim closed 3 years ago

serg-bloim commented 3 years ago

To control partial drop in server.cfg use these settings:

[settings]
InventoryDropPropapility = 0.39
WearDropPropapility = 0.39

They take floating decimal values from 0 to 1 where 0 - drop disabled. Player will loose no item. 1 - drop all like in original a2. Player will loose all items. 0.XY - partial drop. (For example 0.39) Player will loose 39% of his items. More precisely, each item has a 39% chance of being dropped. That's why there is still a change of loosing all or none items for any 0.XY setting. But the probablity is so low, that in most cases plyer will drop ~ XY% (39%) of all items.