Author Topic: Hopefully last problem before I can release the addon..  (Read 2747 times)

Well so recently I fixed my AK-47, But the only thing I'm missing is the ammo system. How am I supposed to do that? I've modelled the weapon and the animations really nicely but it doesn't play the Equip, And doesn't have reload function which the two things I need. Anyone?

It also isn't auto-fire it's semi automatic..

PS: I'm really new at this.

I can't help with the modeling issues, but for scripting: ammo you need to add a reload function to the weapon image, you need to package the servercmdLight as that seems to be what people use for reloading now, and you need to add a thing on the firing function that reduces ammo. Your best bet is to look at the script of a weapon with ammo to get that sorted out. And as for the automatic firing, it requires playing with the firing states. An excellent example would be this Thompson.

I can't help with the modeling issues, but for scripting: ammo you need to add a reload function to the weapon image, you need to package the servercmdLight as that seems to be what people use for reloading now, and you need to add a thing on the firing function that reduces ammo. Your best bet is to look at the script of a weapon with ammo to get that sorted out. And as for the automatic firing, it requires playing with the firing states. An excellent example would be this Thompson.

Well so um.. I have a reload sequence, All in one. No sepearate Clip out or clip in and such..