I've gotten it into my head to create a small static menu on the side of my screen depicting a little nade symbol and the number of nades i have, regardless of what weapon i have out.
i've got a bind to exec a script that looks like this
Code: Select all
// nadez.scr
// cvar setter for porinfo.urc
start:
useweaponclass grenade
wait 700
set nades playerstat 4
wait 100
useweaponclass pistol
wait 400
showmenu porinfo
centerprint "Interface initialized."atm, however, the cvar takes that literally, and shows "playerstat 4" beside my cute little nade shader, as opposed to the number of grenades i have.
it probably wouldnt have worked anyway, but is there any way i can retrieve the ammo i have in a particular slot without that slot being primary?


