Shield Mod

Started by BukTaki, October 24, 2018, 02:18:41 PM

Previous topic - Next topic

BukTaki

I am working skully's shield mod

I need to get the shield above the pawn but below weapon layer. I just don't know what altitude the weapons are on when the pawn changes directions

as it stands i have it as



{
                    if (this.Wearer.Rotation == Rot4.South)
                    {
                        vector.y = Altitudes.AltitudeFor(AltitudeLayer.MoteOverhead);
                        vector.x += 0.2f;
                        vector.z -= 0.2f;
                    }
                    else
                    {
                        if (this.Wearer.Rotation == Rot4.East)
                        {
                            vector.y = Altitudes.AltitudeFor(AltitudeLayer.Pawn);
                            vector.z -= 0.2f;
                            num = 90f;
                        }
                        else
                        {
                            if (this.Wearer.Rotation == Rot4.West)
                            {
                                vector.y = Altitudes.AltitudeFor(AltitudeLayer.MoteOverhead);
                                vector.z -= 0.2f;
                                num = 270f;
                            }
                        }
                    }
                }


Right now the shield hides the weapon.

any help is greatly appreciated.


BukTaki

#1
was just thinking.

If anyone knows what the altitude layer for a weapon when the the pawn has been drafted and is facing south that would help to. Or were i can find an example of the ThingWithComps class with the DrawWornExtras method.