Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  

Custom Weapon Speed Help

Recommended Posts

I've made a weapon for Doom II and have the spirtes set up for animation, but the speed that it plays them is slow.

The Desert Eagle is an extra pistol and I want it to fire faster. Currently it fires half as fast as the regular pistol because it takes time running all the sprite animatons.

My question is how do I speed up sprite animation?

Here is the code for the decorate file:

Actor DesertEagle : Weapon 15555
Scale 0.75
Obituary "%o was splattered by %k pistol"
Radius 20
Height 16
AttackSound "Weapon/PistolFire"
Inventory.pickupmessage "You got the Pistol"
Weapon.SelectionOrder 400
Weapon.SlotNumber 2
Weapon.kickback 100
Weapon.ammotype "CLIP"
Weapon.ammouse 1
Weapon.ammogive 25
2PIS H -1
2PIS A 2 A_WeaponReady
2PIS I 1 A_Lower
2PIS I 1 A_Raise
2PIS A 1
2PIS B 4 bright A_FireBullets(3, 3, 1, 5, "BulletPuff")
2PIS C 4
2PIS D 4
2PIS E 4
2PIS F 4
2PIS G 4
2PIS I 4 A_ReFire
Goto Ready

Thanks for help =)

Share this post

Link to post

Look in the fire state and see what's there. 2PIS C 4 for example. The '4' is how many tics it shows frame C of sprite 2PIS. Lower those numbers in the fire state to have it get to A_refire faster.

Share this post

Link to post

A_FireBullets (angle spread_horz, angle spread_vert, int numbullets, int damage [, string pufftype [,int flags [, float range]]]

Changing both the numbullets and damage variables will change the damage. Both variables should be obvious as to what they do.

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this