Author Topic: Weapon: Sawn-Off Rifle and Server_PGDie  (Read 9861 times)

well one has ammo and the other set doesnt

Oh. You should make a full pack like this.

Oh. You should make a full pack like this.

Or somebody could just use the ammo system from this and port over T+T to this

Why are the bullets one color?


sawn-off shotgun to sawn-off rifle

next thing you know there'll be sawn-off pistols and sawn-off saws.



oc
that's clearly sawn-on saw what do you think you're doing

that's clearly sawn-on saw what do you think you're doing
i think you're thinking of saw-on-saw action

i mean, whatever gets you off. i'm not one to judge ;^)

double post cause totally unrelated

firing the gun is crashing my friend with the error (Invalid Packet(ghost registering object))
both versions of the gun trigger the issue.
Here's a copy of the relevant console trace (quote to see it):


Entering [PirateCannonPackage]Armor::onTrigger(1933, 57176, 0, 1)
   Entering [TankPackage]Armor::onTrigger(1933, 57176, 0, 1)
      Entering [c4]Armor::onTrigger(1933, 57176, 0, 1)
         Entering [Stimpack]Armor::onTrigger(1933, 57176, 0, 1)
            Entering [doubleBayonetDualfire]Armor::onTrigger(1933, 57176, 0, 1)
               Entering [SniperCarbine]Armor::onTrigger(1933, 57176, 0, 1)
                  Entering [combatShotgunDualfire]Armor::onTrigger(1933, 57176, 0, 1)
                     Entering Armor::onTrigger(1933, 57176, 0, 1)
                     Leaving Armor::onTrigger() - return 57176
                  Leaving [combatShotgunDualfire]Armor::onTrigger() - return 57176
               Leaving [SniperCarbine]Armor::onTrigger() - return 57176
            Leaving [doubleBayonetDualfire]Armor::onTrigger() - return 57176
         Leaving [Stimpack]Armor::onTrigger() - return 57176
      Leaving [c4]Armor::onTrigger() - return 57176
   Leaving [TankPackage]Armor::onTrigger() - return 57176
Leaving [PirateCannonPackage]Armor::onTrigger() - return 57176
Entering shortRifleImage::onFire(950, 57176, 0)
   Entering hl2DisplayAmmo(950, 57176, 0)
      Entering GameConnection::bottomPrint(54609, <color:ffffff><font:impact:24><just:right>5/10 <font:tahoma:20>AMMO<font:impact:24>
, , 1)
      Leaving GameConnection::bottomPrint() - return
   Leaving hl2DisplayAmmo() - return
   Entering Player::spawnExplosion(57176, shortRifleRecoilProjectile, 1 1 1)
   Leaving Player::spawnExplosion() - return
   Entering ServerPlay3D(shortRifleFireSound, 35.490311 -76.059944 1.326702)
   Leaving ServerPlay3D() - return -0.959151 0.26544 -0.0978263
   Entering [RaycastingFire]WeaponImage::onFire(950, 57176, 0)
      Entering posFromRaycast(60605 30.403 -74.6543 1.65326 0.995296 -0.0968793 0)
      Leaving posFromRaycast() - return 30.403 -74.6543 1.65326
      Entering normalFromRaycast(60605 30.403 -74.6543 1.65326 0.995296 -0.0968793 0)
      Leaving normalFromRaycast() - return 0.995296 -0.0968793 0
      Entering shortRifleImage::isRaycastCritical(950, 57176, 0, 60605, 30.403 -74.6543 1.65326, 0.995296 -0.0968793 0, 1)
         Entering [Slayer_Dependencies_Minigames]minigamecandamage(57176, 60605)
            Entering [Slayer_Dependencies_Minigames]getMiniGameFromObject(57176)
               Entering getMiniGameFromObject(57176)
                  Entering getBL_IDFromObject(57176)
                     Entering [Slayer_Dependencies_Minigames]getBrickGroupFromObject(57176)
                        Entering getBrickGroupFromObject(57176)
                        Leaving getBrickGroupFromObject() - return 54593
                     Leaving [Slayer_Dependencies_Minigames]getBrickGroupFromObject() - return 54593
                  Leaving getBL_IDFromObject() - return 4928
               Leaving getMiniGameFromObject() - return -1
            Leaving [Slayer_Dependencies_Minigames]getMiniGameFromObject() - return -1
            Entering [Slayer_Dependencies_Minigames]getMiniGameFromObject(60605)
               Entering getMiniGameFromObject(60605)
                  Entering getBL_IDFromObject(60605)
                     Entering [Slayer_Dependencies_Minigames]getBrickGroupFromObject(60605)
                        Entering getBrickGroupFromObject(60605)
                        Leaving getBrickGroupFromObject() - return 60303
                     Leaving [Slayer_Dependencies_Minigames]getBrickGroupFromObject() - return 60303
                  Leaving getBL_IDFromObject() - return 13271
               Leaving getMiniGameFromObject() - return -1
            Leaving [Slayer_Dependencies_Minigames]getMiniGameFromObject() - return -1
            Entering isSlayerMinigame(-1)
            Leaving isSlayerMinigame() - return 0
            Entering minigamecandamage(57176, 60605)
               Entering [Slayer_Dependencies_Minigames]getMiniGameFromObject(57176)
                  Entering getMiniGameFromObject(57176)
                     Entering getBL_IDFromObject(57176)
                        Entering [Slayer_Dependencies_Minigames]getBrickGroupFromObject(57176)
                           Entering getBrickGroupFromObject(57176)
                           Leaving getBrickGroupFromObject() - return 54593
                        Leaving [Slayer_Dependencies_Minigames]getBrickGroupFromObject() - return 54593
                     Leaving getBL_IDFromObject() - return 4928
                  Leaving getMiniGameFromObject() - return -1
               Leaving [Slayer_Dependencies_Minigames]getMiniGameFromObject() - return -1
               Entering [Slayer_Dependencies_Minigames]getMiniGameFromObject(60605)
                  Entering getMiniGameFromObject(60605)
                     Entering getBL_IDFromObject(60605)
                        Entering [Slayer_Dependencies_Minigames]getBrickGroupFromObject(60605)
                           Entering getBrickGroupFromObject(60605)
                           Leaving getBrickGroupFromObject() - return 60303
                        Leaving [Slayer_Dependencies_Minigames]getBrickGroupFromObject() - return 60303
                     Leaving getBL_IDFromObject() - return 13271
                  Leaving getMiniGameFromObject() - return -1
               Leaving [Slayer_Dependencies_Minigames]getMiniGameFromObject() - return -1
            Leaving minigamecandamage() - return -1
         Leaving [Slayer_Dependencies_Minigames]minigamecandamage() - return -1
      Leaving shortRifleImage::isRaycastCritical() - return 0
      Entering WeaponImage::onHitObject(950, 57176, 0, 60605, 30.403 -74.6543 1.65326, 0.995296 -0.0968793 0, -0.997264 0.0736506 -0.006293, 0)
         Entering [Slayer_Dependencies_Minigames]minigamecandamage(57176, 60605)
            Entering [Slayer_Dependencies_Minigames]getMiniGameFromObject(57176)
               Entering getMiniGameFromObject(57176)
                  Entering getBL_IDFromObject(57176)
                     Entering [Slayer_Dependencies_Minigames]getBrickGroupFromObject(57176)
                        Entering getBrickGroupFromObject(57176)
                        Leaving getBrickGroupFromObject() - return 54593
                     Leaving [Slayer_Dependencies_Minigames]getBrickGroupFromObject() - return 54593
                  Leaving getBL_IDFromObject() - return 4928
               Leaving getMiniGameFromObject() - return -1
            Leaving [Slayer_Dependencies_Minigames]getMiniGameFromObject() - return -1
            Entering [Slayer_Dependencies_Minigames]getMiniGameFromObject(60605)
               Entering getMiniGameFromObject(60605)
                  Entering getBL_IDFromObject(60605)
                     Entering [Slayer_Dependencies_Minigames]getBrickGroupFromObject(60605)
                        Entering getBrickGroupFromObject(60605)
                        Leaving getBrickGroupFromObject() - return 60303
                     Leaving [Slayer_Dependencies_Minigames]getBrickGroupFromObject() - return 60303
                  Leaving getBL_IDFromObject() - return 13271
               Leaving getMiniGameFromObject() - return -1
            Leaving [Slayer_Dependencies_Minigames]getMiniGameFromObject() - return -1
            Entering isSlayerMinigame(-1)
            Leaving isSlayerMinigame() - return 0
            Entering minigamecandamage(57176, 60605)
               Entering [Slayer_Dependencies_Minigames]getMiniGameFromObject(57176)
                  Entering getMiniGameFromObject(57176)
                     Entering getBL_IDFromObject(57176)
                        Entering [Slayer_Dependencies_Minigames]getBrickGroupFromObject(57176)
                           Entering getBrickGroupFromObject(57176)
                           Leaving getBrickGroupFromObject() - return 54593
                        Leaving [Slayer_Dependencies_Minigames]getBrickGroupFromObject() - return 54593
                     Leaving getBL_IDFromObject() - return 4928
                  Leaving getMiniGameFromObject() - return -1
               Leaving [Slayer_Dependencies_Minigames]getMiniGameFromObject() - return -1
               Entering [Slayer_Dependencies_Minigames]getMiniGameFromObject(60605)
                  Entering getMiniGameFromObject(60605)
                     Entering getBL_IDFromObject(60605)
                        Entering [Slayer_Dependencies_Minigames]getBrickGroupFromObject(60605)
                           Entering getBrickGroupFromObject(60605)
                           Leaving getBrickGroupFromObject() - return 60303
                        Leaving [Slayer_Dependencies_Minigames]getBrickGroupFromObject() - return 60303
                     Leaving getBL_IDFromObject() - return 13271
                  Leaving getMiniGameFromObject() - return -1
               Leaving [Slayer_Dependencies_Minigames]getMiniGameFromObject() - return -1
            Leaving minigamecandamage() - return -1
         Leaving [Slayer_Dependencies_Minigames]minigamecandamage() - return -1
         Entering [PrjEmit_Pack]Projectile::onAdd(60626)
            Entering Projectile::onAdd(947)
            Leaving Projectile::onAdd() - return
         Leaving [PrjEmit_Pack]Projectile::onAdd() - return
         Entering ProjectileData::onExplode(947, 60626, 30.412952 -74.655266 1.653260)
            Entering getBL_IDFromObject(60626)
               Entering [Slayer_Dependencies_Minigames]getBrickGroupFromObject(60626)
                  Entering getBrickGroupFromObject(60626)
                  Leaving getBrickGroupFromObject() - return 54593
               Leaving [Slayer_Dependencies_Minigames]getBrickGroupFromObject() - return 54593
            Leaving getBL_IDFromObject() - return 4928
         Leaving ProjectileData::onExplode() - return 0
         Entering ServerPlay3D(bulletHitSound, 30.403 -74.6543 1.65326)
         Leaving ServerPlay3D() - return
      Leaving WeaponImage::onHitObject() - return
      Entering [PrjEmit_Pack]Projectile::onAdd(60627)
         Entering Projectile::onAdd(948)
         Leaving Projectile::onAdd() - return
      Leaving [PrjEmit_Pack]Projectile::onAdd() - return
   Leaving [RaycastingFire]WeaponImage::onFire() - return
   Entering [DataAnimFix]Player::playThread(57176, 2, shiftaway)
   Leaving [DataAnimFix]Player::playThread() - return shiftaway
   Entering drawRaylineRifleTracer(33.106 -74.8539 1.67032, 30.403 -74.6543 1.65326)
      Rot: 0 90.3606 175.777
      Entering eulerToAxis(0 90.3606 175.777)
      Leaving eulerToAxis() - return 0.709086 -0.0261426 -0.704637 3.08965
   Leaving drawRaylineRifleTracer() - return 60628
Leaving shortRifleImage::onFire() - return 60628
Entering clientCmdBottomPrint(<color:ffffff><font:impact:24><just:right>5/10 <font:tahoma:20>AMMO<font:impact:24>
, , 1)
Leaving clientCmdBottomPrint() - return
Entering BottomPrintText::onResize(8493, 594, 46)
Leaving BottomPrintText::onResize() - return 10 0
Entering [tmbi]mouseFire(0)
   Entering mouseFire(0)
   Leaving mouseFire() - return 0
Leaving [tmbi]mouseFire() - return 0
Entering [c4]ProjectileData::onCollision(948, 60627, 60605, 1, 30.403015 -74.654297 1.682085, 0.995296 -0.096879 0.000000)
   Entering ProjectileData::onCollision(948, 60627, 60605, 1, 30.403015 -74.654297 1.682085, 0.995296 -0.096879 0.000000)
      Entering getBL_IDFromObject(60627)
         Entering [Slayer_Dependencies_Minigames]getBrickGroupFromObject(60627)
            Entering getBrickGroupFromObject(60627)
            Leaving getBrickGroupFromObject() - return 54593
         Leaving [Slayer_Dependencies_Minigames]getBrickGroupFromObject() - return 54593
      Leaving getBL_IDFromObject() - return 4928
      Entering [Slayer_Dependencies_Minigames]minigamecandamage(54609, 60605)
         Entering [Slayer_Dependencies_Minigames]getMiniGameFromObject(54609)
            Entering getMiniGameFromObject(54609)
               Entering getBL_IDFromObject(54609)
                  Entering [Slayer_Dependencies_Minigames]getBrickGroupFromObject(54609)
                     Entering getBrickGroupFromObject(54609)
                     Leaving getBrickGroupFromObject() - return 54593
                  Leaving [Slayer_Dependencies_Minigames]getBrickGroupFromObject() - return 54593
               Leaving getBL_IDFromObject() - return 4928
            Leaving getMiniGameFromObject() - return -1
         Leaving [Slayer_Dependencies_Minigames]getMiniGameFromObject() - return -1
         Entering [Slayer_Dependencies_Minigames]getMiniGameFromObject(60605)
            Entering getMiniGameFromObject(60605)
               Entering getBL_IDFromObject(60605)
                  Entering [Slayer_Dependencies_Minigames]getBrickGroupFromObject(60605)
                     Entering getBrickGroupFromObject(60605)
                     Leaving getBrickGroupFromObject() - return 60303
                  Leaving [Slayer_Dependencies_Minigames]getBrickGroupFromObject() - return 60303
               Leaving getBL_IDFromObject() - return 13271
            Leaving getMiniGameFromObject() - return -1
         Leaving [Slayer_Dependencies_Minigames]getMiniGameFromObject() - return -1
         Entering isSlayerMinigame(-1)
         Leaving isSlayerMinigame() - return 0
         Entering minigamecandamage(54609, 60605)
            Entering [Slayer_Dependencies_Minigames]getMiniGameFromObject(54609)
               Entering getMiniGameFromObject(54609)
                  Entering getBL_IDFromObject(54609)
                     Entering [Slayer_Dependencies_Minigames]getBrickGroupFromObject(54609)
                        Entering getBrickGroupFromObject(54609)
                        Leaving getBrickGroupFromObject() - return 54593
                     Leaving [Slayer_Dependencies_Minigames]getBrickGroupFromObject() - return 54593
                  Leaving getBL_IDFromObject() - return 4928
               Leaving getMiniGameFromObject() - return -1
            Leaving [Slayer_Dependencies_Minigames]getMiniGameFromObject() - return -1
            Entering [Slayer_Dependencies_Minigames]getMiniGameFromObject(60605)
               Entering getMiniGameFromObject(60605)
                  Entering getBL_IDFromObject(60605)
                     Entering [Slayer_Dependencies_Minigames]getBrickGroupFromObject(60605)
                        Entering getBrickGroupFromObject(60605)
                        Leaving getBrickGroupFromObject() - return 60303
                     Leaving [Slayer_Dependencies_Minigames]getBrickGroupFromObject() - return 60303
                  Leaving getBL_IDFromObject() - return 13271
               Leaving getMiniGameFromObject() - return -1
            Leaving [Slayer_Dependencies_Minigames]getMiniGameFromObject() - return -1
         Leaving minigamecandamage() - return -1
      Leaving [Slayer_Dependencies_Minigames]minigamecandamage() - return -1
   Leaving ProjectileData::onCollision() - return -1
Leaving [c4]ProjectileData::onCollision() - return
Entering ProjectileData::onExplode(948, 60627, 30.412968 -74.655266 1.682085)
   Entering getBL_IDFromObject(60627)
      Entering [Slayer_Dependencies_Minigames]getBrickGroupFromObject(60627)
         Entering getBrickGroupFromObject(60627)
         Leaving getBrickGroupFromObject() - return 54593
      Leaving [Slayer_Dependencies_Minigames]getBrickGroupFromObject() - return 54593
   Leaving getBL_IDFromObject() - return 4928
Leaving ProjectileData::onExplode() - return 0
Entering shortRifleImage::onSmoke(950, 57176, 0)
   Entering hl2DisplayAmmo(950, 57176, 0)
      Entering GameConnection::bottomPrint(54609, <color:ffffff><font:impact:24><just:right>5/10 <font:tahoma:20>AMMO<font:impact:24>
, , 1)
      Leaving GameConnection::bottomPrint() - return
   Leaving hl2DisplayAmmo() - return
   Entering [DataAnimFix]Player::playThread(57176, 2, plant)
   Leaving [DataAnimFix]Player::playThread() - return plant
Leaving shortRifleImage::onSmoke() - return plant
Entering [PirateCannonPackage]Armor::onTrigger(1933, 57176, 0, 0)
   Entering [TankPackage]Armor::onTrigger(1933, 57176, 0, 0)
      Entering [c4]Armor::onTrigger(1933, 57176, 0, 0)
         Entering [Stimpack]Armor::onTrigger(1933, 57176, 0, 0)
            Entering [doubleBayonetDualfire]Armor::onTrigger(1933, 57176, 0, 0)
               Entering [SniperCarbine]Armor::onTrigger(1933, 57176, 0, 0)
                  Entering [combatShotgunDualfire]Armor::onTrigger(1933, 57176, 0, 0)
                     Entering Armor::onTrigger(1933, 57176, 0, 0)
                     Leaving Armor::onTrigger() - return
                  Leaving [combatShotgunDualfire]Armor::onTrigger() - return
               Leaving [SniperCarbine]Armor::onTrigger() - return
            Leaving [doubleBayonetDualfire]Armor::onTrigger() - return
         Leaving [Stimpack]Armor::onTrigger() - return
      Leaving [c4]Armor::onTrigger() - return
   Leaving [TankPackage]Armor::onTrigger() - return
Leaving [PirateCannonPackage]Armor::onTrigger() - return
Entering clientCmdBottomPrint(<color:ffffff><font:impact:24><just:right>5/10 <font:tahoma:20>AMMO<font:impact:24>
, , 1)
Leaving clientCmdBottomPrint() - return
Entering BottomPrintText::onResize(8493, 594, 46)
Leaving BottomPrintText::onResize() - return 10 0
Entering shortRifleImage::onCycle(950, 57176, 0)
   Entering [DataAnimFix]Player::playThread(57176, 2, shiftLeft)
   Leaving [DataAnimFix]Player::playThread() - return shiftLeft
   Entering [DataAnimFix]Player::playThread(57176, 0, shiftRight)
   Leaving [DataAnimFix]Player::playThread() - return shiftRight
Leaving shortRifleImage::onCycle() - return shiftRight
Client 60598 disconnected.
Issuing Disconnect packet.


edit: reread topic; mistakenly enabled quake weapons alongside this one. that's where the error is from. leaving the trace up in case you would ever consider looking for what exactly is the error.
« Last Edit: December 04, 2015, 06:45:26 PM by Conan »

god here we are again

the problem is that you're running quake type weapons along side the sawn off rifle

I'm curious, why does it crash with quake weapons anyways? Honestly I expected it to not work with T+T instead.

what's happening is that quake-type weapons and the sawn-off rifle have the exact same tracer model so the file manifest doesn't have you download the sawn-off's model if you already have the quake-type's model, but the sawn-off rifle explicitly calls the tracer model from it's own shapes folder

problem is that the player doesn't like that directory because the tracer model it downloaded from the manifest was in the quake-type weapons zip

without the model the game instantly crashes

it's honestly one of those situations i could fix it pretty easily but then everyone would have to update everything and it's more of a pain herding cats to get themselves fixed then it is to just tell people to not cause the problem in the first place

i'll upload a quick fix though

Will the ammo pile from T+T able to resupply the Sawn-Off Rifle? If no, can you add support for it?

no, it's not supposed to be used with t+t, you're going to break your server's balance, i will not directly enable you to ruin things for yourself

I was about to edit, but okay.