How do I make ironsights?

This is a noobish question…yeah…but I downloaded an ironsight maker in swep form and…well…yeah i have no idea what to do…

Use **[SWEP.GetViewModelPosition](**.

I forget if you have to use a certain weapon base, but when you’re creating a SWEP you can easily set the Ironsights of a weapon.

All you have to do is set two variables:
[lua]SWEP.IronSightsPos = Vector(0,0,0);
SWEP.IronSightsAng = Angle(0,0,0);[/lua]

Pos and Ang are relative to the original position of the gun. When you activate Ironsights, it moves the gun by the Pos vector and the Ang angle. To activate Ironsights, just do


You have to use the CS:S base for that one

This only works with CSS base. Just copy CSS ironsight code from the base.