Better Bouncing Baby Bulletshell

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
User avatar
Goldenflare5643
Posts: 122
Joined: Sat Oct 08, 2016 9:20 pm
Location: One of those stupid 2fort daycare servers

Better Bouncing Baby Bulletshell

Post by Goldenflare5643 »

So as some of you know I am making a bulletshell actor that is spawned from a gun, thing is, the bullets are very uninteresting and they only bounce in one direction. Here's my code:

Code: Select all

ACTOR BulletShell
{
	PROJECTILE
	-NOGRAVITY
	-NOBLOCKMAP
	+NOTELESTOMP
	+NOTARGET
	+NOICEDEATH
	+DONTTRANSLATE
	+BOUNCEONWALLS
	+BOUNCEONFLOORS
	+BOUNCEONCEILINGS
	+BOUNCEAUTOOFFFLOORONLY
	Radius 2
	Height 2
	BounceType Doom
	BounceFactor 0.7
	WallBounceFactor 0.5
	Mass 1
	Scale 1
	Speed 3
	Friction 0.9
	MaxStepHeight 0
	States
	{
		Spawn:
		BUSH ABCDABCD 4
		loop
		Death:
		BUSH A 0 A_jump(256, 1, 2, 3, 4)
		stop
		BUSH A -1
        stop
		BUSH B -1
        stop
        BUSH C -1
        stop
        BUSH D -1
        stop
	}
}
I want to make the bouncing act more realistic and erratic. Ive tried turning the actor's rotation but that doesn't change velocity, I remember a function for adding velocity in a direction but I cant remember it's name.

Solution? :|

~Thanks
User avatar
Goldenflare5643
Posts: 122
Joined: Sat Oct 08, 2016 9:20 pm
Location: One of those stupid 2fort daycare servers

Re: Better Bouncing Baby Bulletshell

Post by Goldenflare5643 »

So nobody has a solution? Usualy someone posts something in my question threads after a day or so but this is something else...
Post Reply

Return to “Scripting”