MantisBT - Zandronum
View Issue Details
0002229Zandronum[All Projects] Bugpublic2015-05-11 23:362018-09-30 22:27
StrikerMan780 
Torr Samaho 
normalminoralways
closedfixed 
MicrosoftWindowsXP/Vista/7
3.0-beta 
3.0 
0002229: A_SetPitch no longer works online
In Zandronum 2.0, A_SetPitch works fantastically, online and off. In 3.0, it stopped working correctly online. If for example, A_SetPitch(pitch-1.0) (can be any number) is used on a weapon or inventory item, your pitch will always be set to center, facing directly forward, instead of changing your pitch up by 1.0 (or whatever you set).
No tags attached.
? sd.pk3 (1,404) 2015-05-17 23:24
/tracker/file_download.php?file_id=1495&type=bug
Issue History
2015-05-11 23:36StrikerMan780New Issue
2015-05-13 04:03StrikerMan780Note Added: 0012267
2015-05-13 04:06StrikerMan780Note Edited: 0012267bug_revision_view_page.php?bugnote_id=12267#r7085
2015-05-13 19:12StrikerMan780Note Edited: 0012267bug_revision_view_page.php?bugnote_id=12267#r7086
2015-05-15 20:08ArcoSummary[3.0 Alpha] A_SetPitch no longer works online => [Merge-experiments] A_SetPitch no longer works online
2015-05-15 20:09ArcoStatusnew => confirmed
2015-05-17 17:15Torr SamahoAssigned To => Torr Samaho
2015-05-17 17:15Torr SamahoStatusconfirmed => assigned
2015-05-17 17:34Torr SamahoNote Added: 0012322
2015-05-17 17:34Torr SamahoStatusassigned => needs testing
2015-05-17 23:24ArcoFile Added: sd.pk3
2015-05-17 23:25ArcoNote Added: 0012329
2015-05-17 23:25ArcoSeveritymajor => minor
2015-05-17 23:25ArcoStatusneeds testing => resolved
2015-05-17 23:25ArcoResolutionopen => fixed
2015-05-17 23:25ArcoFixed in Version => 3.0
2015-05-24 18:54DuskProduct Version => 3.0
2015-05-24 18:54DuskSummary[Merge-experiments] A_SetPitch no longer works online => A_SetPitch no longer works online
2015-05-24 19:32DuskProduct Version3.0 => 3.0-beta
2018-09-30 22:27Blzut3Statusresolved => closed

Notes
(0012267)
StrikerMan780   
2015-05-13 04:03   
(edited on: 2015-05-13 19:12)
Here's some example Decorate. This is a weapon from a mod of mine with a lot of stuff cut out to work partially without the other content, should reproduce the bug perfectly fine. Just make a text file called decorate.txt, drop this code in it, save, and drag+drop the txt on Zandronum.exe, it'll load.

actor NewShotgun : Weapon
{
    Tag "Remington 870 Magnum"
    Weapon.BobSpeed 1.5
    Weapon.BobStyle "InverseSmooth"
    Weapon.BobRangeX 0.75
    Weapon.BobRangeY 1.5
    Decal BulletChip
    obituary "%o chewed on %k's boomstick."
    radius 20
    height 16
    weapon.selectionorder 1300
    weapon.kickback 100
    Weapon.AmmoType "Shell"
    weapon.ammouse 1
    weapon.slotnumber 3
    states
    {
    Ready:
        SHTG A 1 A_WeaponReady
        goto Ready
    Deselect:
        SHTG AA 0 A_Lower
        SHTG A 1 A_Lower
        goto Deselect
    Select:
        SHTG AA 0 A_Raise
        SHTG A 1 A_Raise
        goto Select
    Fire:
        SHTG B 0 A_GunFlash
        SHTG B 0 Radius_Quake(2, 3, 0, 1, 0)
        SHTG B 0 bright A_PlayWeaponSound("weapons/shotgf")
        SHTG B 0 Bright A_FireBullets (6.6, 3.5, 10, 5, "BulletPuff")
        SHTG B 1 Bright A_SetPitch (pitch-2)
        SHTG C 1 A_SetPitch(pitch+0.8)
        SHTG D 2 A_SetPitch(pitch+0.6)
        SHTG E 2 A_SetPitch(pitch+0.4)
        SHTG F 2 A_SetPitch(pitch+0.2)
        SHTG G 2
        SHTG H 2
        SHTG IJKL 2
        SHTG M 0
        SHTG MNOPQRS 2
        SHTG A 2
        SHTG A 0 A_Refire
        goto Ready
    Flash:
        SHTF A 2 Bright A_Light1
        SHTF A 0 Bright A_Light0
        stop
    }
}

(0012322)
Torr Samaho   
2015-05-17 17:34   
Should be fixed now.
(0012329)
Arco   
2015-05-17 23:25   
Issue fixed in r150517-2229 with the provided code, as given on the ticket.