Here's the code of monster #1
Code: Select all
actor aresshocktrooper 30000
{
health 80
radius 20
height 56
mass 100
speed 9
painchance 96
monster
+floorclip
attacksound "ashtfire"
seesound "aretsight"
painsound "aretpain"
deathsound "aretdeath"
obituary "%o was gunned down by an Ares Shock Trooper"
dropitem "aresshell"
Code: Select all
actor aresshell : ammo 26002
{
inventory.amount 4
inventory.maxamount 40
ammo.backpackamount 16
ammo.backpackmaxamount 80
inventory.pickupmessage "Picked up some Shotgun Shells (4)"
inventory.pickupsound "aresapku"
Now, here's monster #2
Code: Select all
actor aresinfantry 30001
{
health 40
radius 20
height 56
mass 100
speed 9
painchance 120
monster
+floorclip
attacksound "riflefire"
seesound "aretsight"
painsound "aretpain"
deathsound "aretdeath"
obituary "%o was gunned down by Ares Infantry"
dropitem "aresrifleclip"
Code: Select all
actor aresrifleclip : ammo 26000
{
inventory.amount 10
inventory.maxamount 60
ammo.backpackamount 40
ammo.backpackmaxamount 120
inventory.pickupmessage "Picked up a rifle clip (10)"
inventory.pickupsound "aresapku"
EDIT: Now suddenly it started dropping ammo, but as with monster #1, only half the amount you're supposed to get is acquired when picked up. What the hell?
What seems to be the problem here? It's not the wrong class names. I spellchecked them, like, 10 times to be sure. The problem doesn't lie in the ammo itself either because when spawned separately, it works as intended. Thanks in advance for helping me out.
EDIT: The same problem occurs when the monster is supposed to drop a weapon. The pickup gives only half the amount of ammo it's supposed to. I've also tried specifying the amount after the classname (i.e. "aresshell" 4), but it results in the monster not dropping anything.