Jump to content

help with custom weapons


riki2321

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...