#  ![](https://www.realm667.com/media/kunena/topic_icons/realm667/user/map.png) I need a custom missile,but i not fast as hell

##

- **CaptainManiac**
- ![CaptainManiac's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar4791.png) Topic Author
- Cacodemon
- ![Cacodemon](https://www.realm667.com/media/kunena/ranks/rank_8_caco.png)

 Less More- Posts: 103
-
-
-
-

   10 years 6 months ago [\#3111](#3111) by CaptainManiac  *[I need a custom missile,but i not fast as hell](https://www.realm667.com/forum/the-workshop/589-i-need-a-custom-missile-but-i-not-fast-as-hell#3111 "Hi i made the shotgun i mentioned before and made it fire custom missile type "FATSHOT".But it fires 3 missiles simulateansously and AS FAST AS HELL.I want to fire slowly,not fast")* was created by *CaptainManiac*

 Hi i made the shotgun i mentioned before and made it fire custom missile type **"FATSHOT"**.But it fires 3 missiles simulateansously and **AS FAST AS HELL**.I want to fire slowly,not fast

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL3RoZS13b3Jrc2hvcC81ODktaS1uZWVkLWEtY3VzdG9tLW1pc3NpbGUtYnV0LWktbm90LWZhc3QtYXMtaGVsbA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **Blue Shadow**
- ![Blue Shadow's Avatar](https://www.realm667.com/media/kunena/core/svg/person.svg)
- Administrator
- ![Administrator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 1131
-
-
-

   10 years 6 months ago [\#3113](#3113) by Blue Shadow  Replied by *Blue Shadow* on topic *[I need a custom missile,but i not fast as hell](https://www.realm667.com/forum/the-workshop/589-i-need-a-custom-missile-but-i-not-fast-as-hell#3113 "Hi i made the shotgun i mentioned before and made it fire custom missile type "FATSHOT".But it fires 3 missiles simulateansously and AS FAST AS HELL.I want to fire slowly,not fast")*

 Reminder: Do not make non-submission posts in the repository section. The workshop is a better place for that.

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL3RoZS13b3Jrc2hvcC81ODktaS1uZWVkLWEtY3VzdG9tLW1pc3NpbGUtYnV0LWktbm90LWZhc3QtYXMtaGVsbA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **MagicWazard**
- ![MagicWazard's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar517.png)
- Moderator
- ![Moderator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 808
-
-
-
-

   10 years 6 months ago [\#3119](#3119) by MagicWazard  Replied by *MagicWazard* on topic *[I need a custom missile,but i not fast as hell](https://www.realm667.com/forum/the-workshop/589-i-need-a-custom-missile-but-i-not-fast-as-hell#3119 "Hi i made the shotgun i mentioned before and made it fire custom missile type "FATSHOT".But it fires 3 missiles simulateansously and AS FAST AS HELL.I want to fire slowly,not fast")*

 By "fast", you mean the rate-of-fire is too high? Well, to know for sure, I think you'll need to post an example of your code, but I think I've got an idea what the problem is, especially since you mentioned getting 3 fireballs at once. See spoiler contents.

 Warning: Spoiler!

 Let's look at a theoretical example I just made up which probably looks similar to yours: Code:

{ Fire: HFSG FGH 2 A_FireCustomMissile("FatShot") Goto Ready }

In this case, the number "2" represents how many "tics" long each animation frame lasts for. The value for a tic is about 1/35th of a second. The lower the number, the faster the effect happens. So adding more tics to the Fire state will slow it down. You can do this by adding extra animation frames that don't do anything except pad out the animation sequence, or making existing frames take longer. Also, in this case, the function "A_FireCustomMissile" is applied to EVERY animation frame on the line (F, G, and H), not just the last one. So you'll get three fireballs in rapid sequence from one attack function. If you only want to attack once, make sure that your attack function is only applied for one animation frame.

Here's an example of something that can fire a projectile once every 1/2 of a second, which is probably closer to what you want: Code:

{ Fire: HFSG FG 2 //slight delay before shot HFSG H 6 A_FireCustomMissile("FatShot")//only call the attack function for ONE frame, so ONE projectile is fired HFSG GF 6//these just continue the animation to slow down the rate of fire HFSG E 6 A_ReFire//'ReFire' means that this delay is skipped if "Fire" is still held down Goto Ready }

Don't be afraid to post an example if you have a specific question! If nothing else, it'll help you get your answer faster.

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL3RoZS13b3Jrc2hvcC81ODktaS1uZWVkLWEtY3VzdG9tLW1pc3NpbGUtYnV0LWktbm90LWZhc3QtYXMtaGVsbA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **CaptainManiac**
- ![CaptainManiac's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar4791.png) Topic Author
- Cacodemon
- ![Cacodemon](https://www.realm667.com/media/kunena/ranks/rank_8_caco.png)

 Less More- Posts: 103
-
-
-
-

   10 years 6 months ago [\#3121](#3121) by CaptainManiac  Replied by *CaptainManiac* on topic *[I need a custom missile,but i not fast as hell](https://www.realm667.com/forum/the-workshop/589-i-need-a-custom-missile-but-i-not-fast-as-hell#3121 "Hi i made the shotgun i mentioned before and made it fire custom missile type "FATSHOT".But it fires 3 missiles simulateansously and AS FAST AS HELL.I want to fire slowly,not fast")*

 It tells e Bad Numeric Constant. see the code: Code:

ACTOR HellFireSG : Shotgun //2405 { Tag "HellFire Shotgun" +FLOORCLIP +NOGRAVITY +WEAPON.EXPLOSIVE +Weapon.AMMO_OPTIONAL +Weapon.DONTBOB +WEAPON.NOAUTOAIM Weapon.SelectionOrder 3000 Weapon.SlotNumber 3 //AttackSound "weapons/hfsgblast" //Inventory.Pickupsound "misc/hfsgpickup" Inventory.PickupMessage "You got the Hellfire shotgun.Liquidise with Hellfire!" Obituary "%k was liquidised by HellFire Shotgun" Scale 0.3 States { Spawn: HFSG ABC 8 BRIGHT Loop Ready: HFSG DE 2 A_JumpIfInventory("PowerStrength",1,"Powered") Powered: HFSG DE 2 A_WeaponReady Loop Select: HFSG DE 2 A_Raise loop Deselest: HFSG DE 2 A_Lower loop Fire: HFSG FG 2 HFSG H 6 A_FireCustomMissile("FatShot") HFSG DE 2 HFSG GF 6 HFSG E A_ReFire goto Powered } }

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL3RoZS13b3Jrc2hvcC81ODktaS1uZWVkLWEtY3VzdG9tLW1pc3NpbGUtYnV0LWktbm90LWZhc3QtYXMtaGVsbA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **MagicWazard**
- ![MagicWazard's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar517.png)
- Moderator
- ![Moderator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 808
-
-
-
-

   10 years 6 months ago [\#3126](#3126) by MagicWazard  Replied by *MagicWazard* on topic *[I need a custom missile,but i not fast as hell](https://www.realm667.com/forum/the-workshop/589-i-need-a-custom-missile-but-i-not-fast-as-hell#3126 "Hi i made the shotgun i mentioned before and made it fire custom missile type "FATSHOT".But it fires 3 missiles simulateansously and AS FAST AS HELL.I want to fire slowly,not fast")*

 The line for A_ReFire is missing the number of tics it needs to display for. This needs to be filled in before A_ReFire.

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL3RoZS13b3Jrc2hvcC81ODktaS1uZWVkLWEtY3VzdG9tLW1pc3NpbGUtYnV0LWktbm90LWZhc3QtYXMtaGVsbA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **CaptainManiac**
- ![CaptainManiac's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar4791.png) Topic Author
- Cacodemon
- ![Cacodemon](https://www.realm667.com/media/kunena/ranks/rank_8_caco.png)

 Less More- Posts: 103
-
-
-
-

   10 years 6 months ago - 10 years 6 months ago [\#3130](#3130) by CaptainManiac  Replied by *CaptainManiac* on topic *[I need a custom missile,but i not fast as hell](https://www.realm667.com/forum/the-workshop/589-i-need-a-custom-missile-but-i-not-fast-as-hell#3130 "Hi i made the shotgun i mentioned before and made it fire custom missile type "FATSHOT".But it fires 3 missiles simulateansously and AS FAST AS HELL.I want to fire slowly,not fast")*

 Try this to kill a boss,it is still in beta,because it will use a custom 3d model projectile.Until it comes final,you will be hard to kill sometthing with it and hard to aim :oops:
https://drive.google.com/file/d/0B_Wvig29UmsBRTUwcVlGUjhUWlE/view?usp=sharing

 Last edit: 10 years 6 months ago by CaptainManiac. Reason: I have not added the link

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL3RoZS13b3Jrc2hvcC81ODktaS1uZWVkLWEtY3VzdG9tLW1pc3NpbGUtYnV0LWktbm90LWZhc3QtYXMtaGVsbA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

[Powered by](https://www.realm667.com/forum/credits) [Kunena Forum](https://www.kunena.org)
