Page 1 of 1
Projectile with Gravity doesn' work
Posted: Mon Jan 27, 2014 12:18 pm
by rico345
I made realistic bullet (it's very fast and has gravity so It can't go far).
What I did is remove NOGRAVITY flag and set gravity property.
But It's not working. What's the problem?
Code: Select all
actor "Proj_M1897" : FastProjectile
{
Projectile
obituary "%k [M1897 Trench Gun] %o"
Speed 250
Height 2
Radius 2
Damage (19)
-NOGRAVITY
Gravity 3.8
decal RifleChip
DamageType "Shotgun"
States
{
Spawn :
TNT1 A 1
Loop
Death :
TNT1 A 0
TNT1 A 1 A_SpawnItemEx("RiflePuff", 0, 0, 0, 0, 0, 0, 0, 128, 0)
Stop
}
}
RE: Projectile with Gravity doesn' work
Posted: Mon Jan 27, 2014 1:02 pm
by Watermelon
You may have to apply a ThrustThingZ in the spawn state to emulate gravity if FastProjectile's don't accept gravity. The FastProjectile class has weird things done to it so it can work right in doom IIRC.
RE: Projectile with Gravity doesn' work
Posted: Mon Jan 27, 2014 1:13 pm
by Dark-Assassin
I don't think FastProjectile supports gravity.
RE: Projectile with Gravity doesn' work
Posted: Tue Jan 28, 2014 2:31 am
by rico345
Watermelon wrote:
You may have to apply a ThrustThingZ in the spawn state to emulate gravity if FastProjectile's don't accept gravity. The FastProjectile class has weird things done to it so it can work right in doom IIRC.
Thanks. So I did, but not work..
Code: Select all
actor "Proj_Thompson" : FastProjectile
{
Projectile
obituary "%k [Thompson] %o"
Speed 125
Height 2
Radius 2
Damage (23)
Gravity 0.5
decal RifleChip
DamageType "SMG"
States
{
Spawn :
BAL1 A 18
BAL1 A 1 ThrustThingZ(0,35,1,0)
BAL1 A 0 ACS_ExecuteAlways(112,0,37,0,0)
Static :
BAL1 A 1
Loop
Death :
TNT1 A 0
TNT1 A 1 A_SpawnItemEx("SMGPuff", 0, 0, 0, 0, 0, 0, 0, 128, 0)
Stop
}
}
-=Dark-Assassin=- wrote:
I don't think FastProjectile supports gravity.
Thanks. So I removed "FastProjectile" and its work but without "FastProjectile", close distance didn't hitten the target well.
RE: Projectile with Gravity doesn' work
Posted: Wed Jan 29, 2014 10:11 am
by Dark-Assassin
Try testing this in Zandronum 2.0 or ZDoom 2.5.0
Not sure if it will work at all, but FastProjectile may have been updated around then.
RE: Projectile with Gravity doesn' work
Posted: Thu Jan 30, 2014 7:45 am
by rico345
-=Dark-Assassin=- wrote:
Try testing this in Zandronum 2.0 or ZDoom 2.5.0
Not sure if it will work at all, but FastProjectile may have been updated around then.
Thanks, but not work either :(