Author Topic: Suggestion: OnWeaponStart/EndReload  (Read 766 times)

0 Members and 1 Guest are viewing this topic.

Offline deguix

  • Major
  • *
  • Posts: 79
Suggestion: OnWeaponStart/EndReload
« on: May 08, 2008, 06:40:03 am »
My script tries to be the more realistic it can... but it would be much better if I could handle bullets, giving players appropriate amount of bullets depending on the amount of the player's respective ammo inventory. So I suggest the following 2 procedures:

function OnWeaponStartReload():Boolean;
procedure OnWeaponEndReload();

(I think there might be better procedure names...)

There's no need to add parameters to those. But I would suggest having the boolean there for canceling the reload. This boolean would be very useful if used along with a change to ForceWeapon to consider the ammo of 0 as it is, and leave the "-1" or "255" ammo to set the maximum ammo of the current weapon. That would allow to purposely jam weapons (this already happens sometimes from bugs, but I want this controlled). Already possible with fists (jamming fists? rofl).

Offline JFK

  • Camper
  • ***
  • Posts: 255
    • My TraxInSpace Account
Re: Suggestion: OnWeaponStart/EndReload
« Reply #1 on: May 08, 2008, 03:35:52 pm »
Come join: EliteCTF
Listen to: My Music