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

How to make Weapon Casings bounce? And also how to have them spawn at a certain place on the screen.

Question

There is a casings spawner wad on realm667 and i know how to make the casings spawn on certain sprites of the weapon. But the problem is, is that when they spawn they seem to just spawn at doomguy's feet and drop to the floor. They dont bounce or make noise. Can anyone help? I was also wondering if there was a way to make the casing spawn in a certain part of the screen.

Edited by Doomsdλy1993

Share this post


Link to post

4 answers to this question

Recommended Posts

  • 1
On 7/27/2020 at 1:18 AM, Doomsdλy1993 said:

when they spawn they seem to just spawn at doomguy's feet and drop to the floor.

Perhaps spawnheight value isn't set to a high enough value in your projectile firing action? use A_FireProjectile or A_FireCustomMissile instead of A_SpawnItem if you're not already using it.

On 7/27/2020 at 1:18 AM, Doomsdλy1993 said:

They dont bounce or make noise.

Have you already tried adding PROJECTILE, -MISSILE, bounce flags and properties to your casing actor? SeeSound and DeathSound are the sfx for bouncing

On 7/27/2020 at 1:18 AM, Doomsdλy1993 said:

I was also wondering if there was a way to make the casing spawn in a certain part of the screen

For that you'd have to change spawnoffset and spawnheight values in projectile firing action

Edited by sluggard

Share this post


Link to post
  • 0

Thank you so much I've changed A_SpawnItem to A_FireCustomMissile and I've added PROJECTILE and -MISSLE and all of the bouncing stuff my only problem now is changing the spawnoffset and spawnheight. I'm not sure what i'm meant to edit to change the offset and the height. Now when I fire my pistol the casing does bounce and it does go forward and it looks like its at the right height but its just the offset as the casings comes out at the front of the gun instead of the right side of it.

Share this post


Link to post
  • 0
GLOF A 0 bright A_FireCustomMissile("DeadBulletCasing",0,0,0,-1)

This is the code for it.

Share this post


Link to post
  • 0
1 hour ago, Doomsdλy1993 said:

its just the offset as the casings comes out at the front of the gun instead of the right side of it.

Try this changing the angle parameter, it should look like this 

A_FireCustomMissile("DeadBulletCasing",45+random(-8,8),.......

 

Edited by sluggard

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
×