Posted by: Victorious_Games
« on: July 06, 2018, 10:31:08 AM »Sixty already said it I think. defs/weaponinfo. That's not in scripts its in the defs.
I understand what he said but in the weapon scripts I need to be able to tell if the player is currently using normal shotgun shells or explosive shotguns shells. Is there a way to check which ammo type the player is using in the weapons scripts? I currently have the primary fire button shooting 1 shotgun shell and the secondary fire button shooting 2 shotgun shells. But the only way to get the secondary fire button to shoot 2 shotgun shells was to add a fireprojectile command that forces it to shoot the shotgun_bullet.particle. It works great for the normal shotgun shells but when using the explosive shotgun shells the shotgun fires 1 explosive shell and 1 normal shell. I need an if statement that will check if the player is using normal or explosive shotgun shells so that I can force it to shoot the proper projectile.
Also is there any way to make the alternate fire button loop the shooting animations for a weapon. For example the shotgun will not continuously shoot when holding down the alternate fire button like it does when holding down the primary fire button. Is there a way to fix this or is this something in the source?