You got the code from the edited wiki entry, huh? Okay, makes sense now. Hate to pin in it on Hendricks, but when he
edited the tutorial the first time, he messed up the brackets in the APLAYER line that made the clip refresh correctly.
Change the block of code that's beneath the APLAYER line to this...
getplayer[THISACTOR].curr_weapon PWEAPON
getplayer[THISACTOR].kickback_pic KICKBACK
getplayer[THISACTOR].ammo_amount 1 PISTOLAMMO
ifvare PWEAPON 1
{
ifvarl PISTOLMAGAZINE 1
{
getplayer[THISACTOR].weapon_pos PERPLAYER1
ifvarn PERPLAYER1 0 break
else ifvarl PISTOLAMMO 1
break
else
{
setplayer[THISACTOR].reloading 1
setplayer[THISACTOR].kickback_pic 4
} }
ifvare KICKBACK 5
{
ifvarg PISTOLAMMO 11
setvar PISTOLMAGAZINE 12
else
setvarvar PISTOLMAGAZINE PISTOLAMMO
}
}
When I opened your con file (as well as Hendrick's first edit), the code was like this - -
getplayer[THISACTOR].curr_weapon PWEAPON
getplayer[THISACTOR].kickback_pic KICKBACK
getplayer[THISACTOR].ammo_amount 1 PISTOLAMMO
ifvare PWEAPON 1
{
ifvarl PISTOLMAGAZINE 1
{
getplayer[THISACTOR].weapon_pos PERPLAYER1
ifvarn PERPLAYER1 0
break
else ifvarl PISTOLAMMO 1
break
else
{
setplayer[THISACTOR].reloading 1
setplayer[THISACTOR].kickback_pic 4
}
ifvare KICKBACK 5
{
ifvarg PISTOLAMMO 11
setvar PISTOLMAGAZINE 12
else
setvarvar PISTOLMAGAZINE PISTOLAMMO
}
}
} // this last bracket here is what did it. This belongs further up, beneath the code that sets the kickback pic to 4. With the code like this, the clip ONLY gets refreshed if the magazine count is less than zero.
You'll notice in the version of the tutorial on this thread, and the first version of the tutorial that was on the wiki, that bracket was where it belonged. Sorry for the confusion, I'll fix the wiki entry immediately.