I earlier loaded up a gun into DBPro, and it was inside out, so I thought "Ok, no problem, just a stupid model, that's all." So I made another one, and it's even worse.
It has gone inside out as if I had locked it on, and it looks real bad.
Any ideas what's going on here?
Here's my gun loading, positioning, and controlling subroutine:
_Control_Guns:
OldGun=Gun
if Spacekey()=1 then Gun=1
If Gun<>OldGun
If Object Exist(10)=1 then Delete Object 10
If object exist(10)=0 then Load object GunName$(Gun),10
Scale object 10,GunScaleX(Gun),GunScaleY(Gun),GunScaleZ(Gun)
Yrotate object 10,180 : Fix Object Pivot 10
Set Object Cull 10,1
Set Object Specular 10,30 : set object specular Power 10,2000
Endif
If Object Exist(10)=1
Gx#=WX#+((sin(WAY#+GunOffsetY(Gun))*cos(WAX#+GunOffsetX(Gun)))*GunOffsetZ(Gun))
Gy#=WY#+((-Sin(WAX#+GunOffsetX(Gun)))*GunOffsetZ(Gun))
Gz#=WZ#+((Cos(WAY#+GunOffsetY(Gun))*Cos(WAX#+GunOffsetX(Gun)))*GunOffsetZ(Gun))
Position object 10,gx#,gy#,gz#
Rotate object 10,gax#,gay#,0
Endif
Return
Uhhh... some guns are just dumb.