How to reload a weapon from script

Check periodically whether it's combat or not, if not and dude needs to reload - reload.
 
Looks like you can't fully script reloading, because even after you load bullets into the weapon and play appropriate sound, UI won't be updated (ammo meter)... Need some engine tweaks.

Ok, I did easiest solution - added configurable hotkey to sfall to reload player's active weapon. No scripting. I figured it more like a UI improvement rather than some advanced scripting stuff. Not sure about auto-reload on end of combat though. I think hotkey should be enough :)
 
Last edited:
Ok, I did easiest solution - added configurable hotkey to sfall to reload player's active weapon. No scripting. I figured it more like a UI improvement rather than some advanced scripting stuff. Not sure about auto-reload on end of combat though. I think hotkey should be enough :)
Awesome! It can be got from sourceforge, right?
 
Back
Top