It was hard to understand but I managed to You mean that first shotgun pickup (the very first time when you pick it) gives you 8 shells, and every another gives only 4.Gorec wrote:bug-if u take shotgun from shotgun guy then already placed shot wont give u 8 shells
That's pretty simple:
Code: Select all
Pickup:
tnt1 a 0 a_jumpifinventory("XtremeShotgun",1,"AlreadyPickup")
tnt1 a 0 a_jumpifinventory("shell",0,"AlreadyPickup+3")
tnt1 a 0
{
a_playsound("weapons/shotgun/pickup");
a_giveinventory("XtremeShotgun",1,AAPTR_PLAYER1);
}
stop
AlreadyPickup:
tnt1 a 0
tnt1 a 0 a_jumpifinventory("shell",0,"+2")
tnt1 a 0 { a_playsound("items/shell"); a_giveinventory("XtremeShell",4); }
stop
tnt1 a 0
fail
}
Code: Select all
tnt1 a 0 { a_playsound("items/shell"); a_giveinventory("XtremeShell",4); }
Code: Select all
tnt1 a 0 { a_playsound("items/shell"); a_giveinventory("XtremeShell",8); }