A_FireBullets... Sometimes hit, sometimes not?

Discuss all aspects related to modding Zandronum here.
Post Reply
rico345
 
Posts: 68
Joined: Sun Jul 08, 2012 2:13 pm
Location: Republic Of Korea

A_FireBullets... Sometimes hit, sometimes not?

#1

Post by rico345 » Tue Aug 20, 2013 4:13 pm

Well, this is really serious problem of my mod.

Problem is : Firing FireArm(with A_FireBullets), sometimes just not hit.

This is code :

Code: Select all


Fire :
			SCOP C 1 A_FireBullets(0,0,1,150,"M90Puff",FBF_NORANDOM,30000)
			TNT1 AAA 0 A_FireBullets(0,0,1,150,"M90NotShownPuff",FBF_NORANDOM,30000)

I just can't understand because same styles other weapon work.
Look this. It's working fine.

Code: Select all


SCOP A 1 A_FireBullets(0,0,1,10,"M40Puff",FBF_NORANDOM,20000)
			TNT1 AAAAAAAAAAAA 0 A_FireBullets(0,0,15,"M40NotShownPuff",FBF_NORANDOM,20000)

If both not work, I can understand.
But only that weapon does not working!

These are Bulletpuffs of them :

Code: Select all


actor NewPuff : BulletPuff
{
	Renderstyle Add
	-NONETID
	+NOBLOCKMAP
	+NOGRAVITY
	-ALLOWPARTICLES
	damagetype "Bullet"
	+NOEXTREMEDEATH
	+PUFFONACTORS
	+PUFFGETSOWNER
	decal RifleChip

	States
	{
		Spawn:
			TNT1 A 1
			TNT1 A 0 A_JumpIfCloser(16,"Nothing")
			TNT1 A 0 A_SpawnItemEx("GunImpactSmoke", 0, 0, 0, 0, 0, 0, 0, 128, 0)
			TNT1 A 0 A_GiveToTarget("HitIndicator",1)
			TNT1 A 0 A_PlaySound("effect/hit")
			WPPU ABCDEF 1
			WPPU GHI 1 A_FadeOut(0.01)
			WPPU JKL 2 A_FadeOut(0.05)
			WPPU MN 2 A_FadeOut(0.10)
			Stop
		Nothing :
			TNT1 A 0
			Stop
		Crash :
			TNT1 A 0
			TNT1 A 0 A_SpawnItemEx("GunImpactSmoke", 0, 0, 0, 0, 0, 0, 0, 128, 0)
			TNT1 A 0 A_PlaySound("effect/rico")
			WPPU ABCDEF 1
			WPPU GHI 1 A_FadeOut(0.01)
			WPPU JKL 2 A_FadeOut(0.05)
			WPPU MN 2 A_FadeOut(0.10)
			Stop
	}
}

actor M40Puff : NewPuff
{
	DamageType "M40"
}

actor M90Puff : NewPuff
{
	DamageType "M90"
}


What is the problem?
Is this Zandronum Bug? or may I did something wrong?
This is really serious to me...
Someone help plz!

Klofkac
Forum Regular
Posts: 481
Joined: Sat Jun 09, 2012 1:31 pm
Location: Ask Grandvoid servers

RE: A_FireBullets... Sometimes hit, sometimes not?

#2

Post by Klofkac » Tue Aug 20, 2013 4:22 pm

Well, I would think problem could be in range being too high, but anyway:

Code: Select all

TNT1 AAA 0 A_FireBullets(0,0,1,150,"M90NotShownPuff",FBF_NORANDOM,30000)
should be

Code: Select all

TNT1 A 0 A_FireBullets(0,0,3,150,"M90NotShownPuff",FBF_NORANDOM,30000)
𝕂𝕝𝕠𝕗𝕜𝕒𝕔

Lollipop
Zandrone
Posts: 1124
Joined: Tue Jul 24, 2012 10:34 am
Location: Denmark

RE: A_FireBullets... Sometimes hit, sometimes not?

#3

Post by Lollipop » Tue Aug 20, 2013 4:29 pm

Why should a rifle shoot 3 bullets? That do not make any real sense, as it's not a shotgun.
Combinebobnt wrote:i can see the forum league is taking off much better than the ctf ones
GalactusToday at 1:07 PM
are you getting uncomfortable jap
feeling something happen down there

rico345
 
Posts: 68
Joined: Sun Jul 08, 2012 2:13 pm
Location: Republic Of Korea

RE: A_FireBullets... Sometimes hit, sometimes not?

#4

Post by rico345 » Tue Aug 20, 2013 4:53 pm

Lollipop wrote: Why should a rifle shoot 3 bullets? That do not make any real sense, as it's not a shotgun.
For Penetration on Death. I knew it someone ask it.

User avatar
Ænima
Addicted to Zandronum
Posts: 3582
Joined: Tue Jun 05, 2012 6:12 pm

RE: A_FireBullets... Sometimes hit, sometimes not?

#5

Post by Ænima » Tue Aug 20, 2013 4:54 pm

Lollipop wrote: Why should a rifle shoot 3 bullets? That do not make any real sense, as it's not a shotgun.
Look at the X and Y spread values. They're zero. This isn't a shotgun. This is a technique that has been used for YEARS to create "armor-piercing" hitscan attacks which also have high painchance. Great for sniper rifles. I've used this technique myself in Mercenaries.

EDIT:
And yeah like Rico just ninja-posted before me, it will "penetrate" through a killed enemy and hit the enemy behind him.
Last edited by Ænima on Tue Aug 20, 2013 4:56 pm, edited 1 time in total.
Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)
Image

Lollipop
Zandrone
Posts: 1124
Joined: Tue Jul 24, 2012 10:34 am
Location: Denmark

RE: A_FireBullets... Sometimes hit, sometimes not?

#6

Post by Lollipop » Wed Aug 21, 2013 7:16 am

Oh right, thank you for explaining that ;)
I will remember this, might prove usefull to me :3
Combinebobnt wrote:i can see the forum league is taking off much better than the ctf ones
GalactusToday at 1:07 PM
are you getting uncomfortable jap
feeling something happen down there

rico345
 
Posts: 68
Joined: Sun Jul 08, 2012 2:13 pm
Location: Republic Of Korea

RE: A_FireBullets... Sometimes hit, sometimes not?

#7

Post by rico345 » Wed Aug 21, 2013 7:33 am

Klofkac wrote: Well, I would think problem could be in range being too high,
You are genius dude! THANKS!

Post Reply