Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
riki2321

help with custom weapons

Recommended Posts

actor stupidgun : Weapon 20060
{
  radius 20 
  height 16
  inventory.pickupmessage "You got the stupid gun!!"
  weapon.selectionorder 8
  weapon.kickback 500
  weapon.ammotype "RocketAmmo"
  weapon.ammouse 4
  weapon.ammogive 0
  +WEAPON.CHEATNOTWEAPON  
  +WEAPON.NOAUTOFIRE
  states
  {
  Ready:
    SHIT A 1 A_WeaponReady
    loop
  Deselect:
    SHIT A 1 A_Lower
    loop
  Select:
    SHIT A 1 A_Raise
    loop
  Fire:
    SHIT A 1 A_GunFlash
    SHIT B 1 Acs_execute(666,0)
    SHIT B 1 A_CustomMissile("Rocket",48,0)
    SHIT B 1 A_CustomMissile("Rocket",32,0)
    SHIT B 1 A_CustomMissile("Rocket",16,0)
    SHIT B 1 A_CustomMissile("Rocket",8,0)
    goto Ready
  Flash:
    SHIT A 1 bright A_Light1
    SHIT A 1 bright
    SHIT A 1 bright A_Light2
    SHIT A 0 bright A_Light0
    stop
  Spawn:
    SHIT A -1
    stop
  }
}
so when the missile is fired.. it doesnt work

Share this post


Link to post

Use A_FireCustomMissile instead of A_CustomMissile. A_CustomMissile is for enemy projectile attacks, while A_FireCustomMissile is for player weapon attacks. Beware, each of the functions has different parameters, see wiki.

Also make sure that Script 666 exists in every map you are playing with this weapon, or is loaded via LOADACS to be available in every map in the wad.

Share this post


Link to post
scifista42 said:

Use A_FireCustomMissile instead of A_CustomMissile. A_CustomMissile is for enemy projectile attacks, while A_FireCustomMissile is for player weapon attacks. Beware, each of the functions has different parameters, see wiki.

Also make sure that Script 666 exists in every map you are playing with this weapon, or is loaded via LOADACS to be available in every map in the wad.

thank you also i use script 666 on all my maps

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
×