#  ![](https://www.realm667.com/media/kunena/topic_icons/realm667/user/map.png) Spawn casings

##

- **DoomModer88**
- ![DoomModer88's Avatar](https://www.realm667.com/media/kunena/core/svg/person.svg) Topic Author
- Shotgunner
- ![Shotgunner](https://www.realm667.com/media/kunena/ranks/rank_3_shotgunner.png)

 Less More- Posts: 3
-
-

   3 years 9 months ago - 3 years 9 months ago [\#9982](#9982) by DoomModer88  *[Spawn casings](https://www.realm667.com/forum/the-workshop/1794-spawn-casings#9982 "Hello mates I really need help you are my last chance here.

Forgive me if my topic is in wrong place.
So I have made an M16 weapon with reload, sounds etc. I wanted to create some really HD sprites so in order to display right my weapon I used this code in textures lump just to know I'm using GZDoom UDFM format
/////////////////////////////////////////////////////////TEXTURES/////////////////////////////////
sprite M16GA0, 1000, 1000 // this is my sprite scales 
{
xscale 3
yscale 3
offset 30, 450
patch M16GA0, 1, 1
}
So far so good, the big issue is that I can't properly spawn my casings I tried many, many ways but no luck
this is the different code lines I tried 
///////////////////////////////////////////////////////////////////// DECORATE /////////////////////////////
TNT1 A 0 A_SpawnItemEx("CasingSpawner", CMF_AIMDIRECTION, CMF_AIMDIRECTION,5,0,10,10,45)
    //M16F A 0 /*Offset (0,0)*/ A_FireCustomMissile("pistolCasingSpawner",-10,0,0,0,0,CMF_AIMDIRECTION)

    //M16F A 0 A_customMissile("CasingSpawner", 32, 12, CMF_AIMDIRECTION,0, random(-1, 1)) //CMF_OFFSETPITCH
    //M16F A 1 A_FireCustomMissile("CasingSpawner",30,450,CMF_AIMDIRECTION|CMF_AIMDIRECTION)
    //M16F A 0 Offset(0, 0) A_FireCustomMissile("CasingSpawner",350,0,0,-5,1,CMF_OFFSETPITCH|CMF_AIMDIRECTION)
    //M16F A 0 Offset(0, 0) A_FireCustomMissile("BulletChell",-90,0,10,10,FPF_NOAUTOAIM)
    //M16F A 0 A_SpawnItemEx("CasingSpawner",5,10,CMF_AIMDIRECTION,5,0,5)
Keep in mind my sprites size and position on screen; is any way guys to make that beautiful correct spawn casings like so many wads out there?
By the way all that different ") " are several spawners I found from some wads ")* was created by *DoomModer88*

 Hello mates I really need help you are my last chance here.
Forgive me if my topic is in wrong place.
So I have made an M16 weapon with reload, sounds etc. I wanted to create some really HD sprites so in order to display right my weapon I used this code in textures lump just to know I'm using GZDoom UDFM format
/////////////////////////////////////////////////////////TEXTURES/////////////////////////////////
sprite M16GA0, 1000, 1000 // this is my sprite scales
{
xscale 3
yscale 3
offset 30, 450
patch M16GA0, 1, 1
}
So far so good, the big issue is that I can't properly spawn my casings I tried many, many ways but no luck
this is the different code lines I tried
///////////////////////////////////////////////////////////////////// DECORATE /////////////////////////////
TNT1 A 0 A_SpawnItemEx("CasingSpawner", CMF_AIMDIRECTION, CMF_AIMDIRECTION,5,0,10,10,45)
 //M16F A 0 /*Offset (0,0)*/ A_FireCustomMissile("pistolCasingSpawner",-10,0,0,0,0,CMF_AIMDIRECTION)

 //M16F A 0 A_customMissile("CasingSpawner", 32, 12, CMF_AIMDIRECTION,0, random(-1, 1)) //CMF_OFFSETPITCH
 //M16F A 1 A_FireCustomMissile("CasingSpawner",30,450,CMF_AIMDIRECTION|CMF_AIMDIRECTION)
 //M16F A 0 Offset(0, 0) A_FireCustomMissile("CasingSpawner",350,0,0,-5,1,CMF_OFFSETPITCH|CMF_AIMDIRECTION)
 //M16F A 0 Offset(0, 0) A_FireCustomMissile("BulletChell",-90,0,10,10,FPF_NOAUTOAIM)
 //M16F A 0 A_SpawnItemEx("CasingSpawner",5,10,CMF_AIMDIRECTION,5,0,5)
Keep in mind my sprites size and position on screen; is any way guys to make that beautiful correct spawn casings like so many wads out there?
By the way all that different ") " are several spawners I found from some wads

 Last edit: 3 years 9 months ago by DoomModer88.

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

- **inkoalawetrust**
- ![inkoalawetrust's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar11669.jpg?1718890853)
- Moderator
- ![Moderator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 254
-
-

   3 years 9 months ago - 3 years 9 months ago [\#9985](#9985) by inkoalawetrust  Replied by *inkoalawetrust* on topic *[Spawn casings](https://www.realm667.com/forum/the-workshop/1794-spawn-casings#9985 "Hello mates I really need help you are my last chance here.

Forgive me if my topic is in wrong place.
So I have made an M16 weapon with reload, sounds etc. I wanted to create some really HD sprites so in order to display right my weapon I used this code in textures lump just to know I'm using GZDoom UDFM format
/////////////////////////////////////////////////////////TEXTURES/////////////////////////////////
sprite M16GA0, 1000, 1000 // this is my sprite scales 
{
xscale 3
yscale 3
offset 30, 450
patch M16GA0, 1, 1
}
So far so good, the big issue is that I can't properly spawn my casings I tried many, many ways but no luck
this is the different code lines I tried 
///////////////////////////////////////////////////////////////////// DECORATE /////////////////////////////
TNT1 A 0 A_SpawnItemEx("CasingSpawner", CMF_AIMDIRECTION, CMF_AIMDIRECTION,5,0,10,10,45)
    //M16F A 0 /*Offset (0,0)*/ A_FireCustomMissile("pistolCasingSpawner",-10,0,0,0,0,CMF_AIMDIRECTION)

    //M16F A 0 A_customMissile("CasingSpawner", 32, 12, CMF_AIMDIRECTION,0, random(-1, 1)) //CMF_OFFSETPITCH
    //M16F A 1 A_FireCustomMissile("CasingSpawner",30,450,CMF_AIMDIRECTION|CMF_AIMDIRECTION)
    //M16F A 0 Offset(0, 0) A_FireCustomMissile("CasingSpawner",350,0,0,-5,1,CMF_OFFSETPITCH|CMF_AIMDIRECTION)
    //M16F A 0 Offset(0, 0) A_FireCustomMissile("BulletChell",-90,0,10,10,FPF_NOAUTOAIM)
    //M16F A 0 A_SpawnItemEx("CasingSpawner",5,10,CMF_AIMDIRECTION,5,0,5)
Keep in mind my sprites size and position on screen; is any way guys to make that beautiful correct spawn casings like so many wads out there?
By the way all that different ") " are several spawners I found from some wads ")*

 This isn't really the right place to ask for help with this, especially not this subforum in particular, which is for weapon-related submissions to the repository. For help with modding you should instead ask in places like the ZDoom Discord (https://dsc.gg/zdoom) and the ZDoom forum (https://forum.zdoom.org/index.php). You should also probably check the wiki (https://zdoom.org/wiki/Main_Page), if you don't already.

 Last edit: 3 years 9 months ago by inkoalawetrust. Reason: Fixed links.

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

- **DoomModer88**
- ![DoomModer88's Avatar](https://www.realm667.com/media/kunena/core/svg/person.svg) Topic Author
- Shotgunner
- ![Shotgunner](https://www.realm667.com/media/kunena/ranks/rank_3_shotgunner.png)

 Less More- Posts: 3
-
-

   3 years 9 months ago [\#9987](#9987) by DoomModer88  Replied by *DoomModer88* on topic *[Spawn casings](https://www.realm667.com/forum/the-workshop/1794-spawn-casings#9987 "Hello mates I really need help you are my last chance here.

Forgive me if my topic is in wrong place.
So I have made an M16 weapon with reload, sounds etc. I wanted to create some really HD sprites so in order to display right my weapon I used this code in textures lump just to know I'm using GZDoom UDFM format
/////////////////////////////////////////////////////////TEXTURES/////////////////////////////////
sprite M16GA0, 1000, 1000 // this is my sprite scales 
{
xscale 3
yscale 3
offset 30, 450
patch M16GA0, 1, 1
}
So far so good, the big issue is that I can't properly spawn my casings I tried many, many ways but no luck
this is the different code lines I tried 
///////////////////////////////////////////////////////////////////// DECORATE /////////////////////////////
TNT1 A 0 A_SpawnItemEx("CasingSpawner", CMF_AIMDIRECTION, CMF_AIMDIRECTION,5,0,10,10,45)
    //M16F A 0 /*Offset (0,0)*/ A_FireCustomMissile("pistolCasingSpawner",-10,0,0,0,0,CMF_AIMDIRECTION)

    //M16F A 0 A_customMissile("CasingSpawner", 32, 12, CMF_AIMDIRECTION,0, random(-1, 1)) //CMF_OFFSETPITCH
    //M16F A 1 A_FireCustomMissile("CasingSpawner",30,450,CMF_AIMDIRECTION|CMF_AIMDIRECTION)
    //M16F A 0 Offset(0, 0) A_FireCustomMissile("CasingSpawner",350,0,0,-5,1,CMF_OFFSETPITCH|CMF_AIMDIRECTION)
    //M16F A 0 Offset(0, 0) A_FireCustomMissile("BulletChell",-90,0,10,10,FPF_NOAUTOAIM)
    //M16F A 0 A_SpawnItemEx("CasingSpawner",5,10,CMF_AIMDIRECTION,5,0,5)
Keep in mind my sprites size and position on screen; is any way guys to make that beautiful correct spawn casings like so many wads out there?
By the way all that different ") " are several spawners I found from some wads ")*

 Well when I'm saying here is like my last chance to get help you should think why I telling that
Here some people making weapons and hopefully some of them willing help me out with casings

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

- **DoomModer88**
- ![DoomModer88's Avatar](https://www.realm667.com/media/kunena/core/svg/person.svg) Topic Author
- Shotgunner
- ![Shotgunner](https://www.realm667.com/media/kunena/ranks/rank_3_shotgunner.png)

 Less More- Posts: 3
-
-

   3 years 9 months ago - 3 years 9 months ago [\#9988](#9988) by DoomModer88  Replied by *DoomModer88* on topic *[Spawn casings](https://www.realm667.com/forum/the-workshop/1794-spawn-casings#9988 "Hello mates I really need help you are my last chance here.

Forgive me if my topic is in wrong place.
So I have made an M16 weapon with reload, sounds etc. I wanted to create some really HD sprites so in order to display right my weapon I used this code in textures lump just to know I'm using GZDoom UDFM format
/////////////////////////////////////////////////////////TEXTURES/////////////////////////////////
sprite M16GA0, 1000, 1000 // this is my sprite scales 
{
xscale 3
yscale 3
offset 30, 450
patch M16GA0, 1, 1
}
So far so good, the big issue is that I can't properly spawn my casings I tried many, many ways but no luck
this is the different code lines I tried 
///////////////////////////////////////////////////////////////////// DECORATE /////////////////////////////
TNT1 A 0 A_SpawnItemEx("CasingSpawner", CMF_AIMDIRECTION, CMF_AIMDIRECTION,5,0,10,10,45)
    //M16F A 0 /*Offset (0,0)*/ A_FireCustomMissile("pistolCasingSpawner",-10,0,0,0,0,CMF_AIMDIRECTION)

    //M16F A 0 A_customMissile("CasingSpawner", 32, 12, CMF_AIMDIRECTION,0, random(-1, 1)) //CMF_OFFSETPITCH
    //M16F A 1 A_FireCustomMissile("CasingSpawner",30,450,CMF_AIMDIRECTION|CMF_AIMDIRECTION)
    //M16F A 0 Offset(0, 0) A_FireCustomMissile("CasingSpawner",350,0,0,-5,1,CMF_OFFSETPITCH|CMF_AIMDIRECTION)
    //M16F A 0 Offset(0, 0) A_FireCustomMissile("BulletChell",-90,0,10,10,FPF_NOAUTOAIM)
    //M16F A 0 A_SpawnItemEx("CasingSpawner",5,10,CMF_AIMDIRECTION,5,0,5)
Keep in mind my sprites size and position on screen; is any way guys to make that beautiful correct spawn casings like so many wads out there?
By the way all that different ") " are several spawners I found from some wads ")*

 I read here that you can help to make better even expand a weapon or a monster whatever as about the code above is what I get from ZDoom and DoomWorld trying to figure out with the wiki in combination but nothing helped.
In the above forums I mentioned they stopped respond to my posts I mean the hole point is a place to share opinions knowledge for the same passion and help others but the weapon casing looks like the most hot subject that no one knows how... looks like is the secret knowledge of some developers...I don't know what to say I am so sad.

 Last edit: 3 years 9 months ago by DoomModer88. Reason: Sentence mistake

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

- **TyrannotitanFan**
- ![TyrannotitanFan's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar11787.png?1781431990)
- Lost Soul
- ![Lost Soul](https://www.realm667.com/media/kunena/ranks/rank_7_skull.png)

 Less More- Posts: 91
-
-
-
-

   3 years 9 months ago [\#9989](#9989) by TyrannotitanFan  Replied by *TyrannotitanFan* on topic *[Spawn casings](https://www.realm667.com/forum/the-workshop/1794-spawn-casings#9989 "Hello mates I really need help you are my last chance here.

Forgive me if my topic is in wrong place.
So I have made an M16 weapon with reload, sounds etc. I wanted to create some really HD sprites so in order to display right my weapon I used this code in textures lump just to know I'm using GZDoom UDFM format
/////////////////////////////////////////////////////////TEXTURES/////////////////////////////////
sprite M16GA0, 1000, 1000 // this is my sprite scales 
{
xscale 3
yscale 3
offset 30, 450
patch M16GA0, 1, 1
}
So far so good, the big issue is that I can't properly spawn my casings I tried many, many ways but no luck
this is the different code lines I tried 
///////////////////////////////////////////////////////////////////// DECORATE /////////////////////////////
TNT1 A 0 A_SpawnItemEx("CasingSpawner", CMF_AIMDIRECTION, CMF_AIMDIRECTION,5,0,10,10,45)
    //M16F A 0 /*Offset (0,0)*/ A_FireCustomMissile("pistolCasingSpawner",-10,0,0,0,0,CMF_AIMDIRECTION)

    //M16F A 0 A_customMissile("CasingSpawner", 32, 12, CMF_AIMDIRECTION,0, random(-1, 1)) //CMF_OFFSETPITCH
    //M16F A 1 A_FireCustomMissile("CasingSpawner",30,450,CMF_AIMDIRECTION|CMF_AIMDIRECTION)
    //M16F A 0 Offset(0, 0) A_FireCustomMissile("CasingSpawner",350,0,0,-5,1,CMF_OFFSETPITCH|CMF_AIMDIRECTION)
    //M16F A 0 Offset(0, 0) A_FireCustomMissile("BulletChell",-90,0,10,10,FPF_NOAUTOAIM)
    //M16F A 0 A_SpawnItemEx("CasingSpawner",5,10,CMF_AIMDIRECTION,5,0,5)
Keep in mind my sprites size and position on screen; is any way guys to make that beautiful correct spawn casings like so many wads out there?
By the way all that different ") " are several spawners I found from some wads ")*

 You could ask about it on Workshop instead here

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL3RoZS13b3Jrc2hvcC8xNzk0LXNwYXduLWNhc2luZ3M=&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)
