Skip to content

Commit

Permalink
Merge pull request #13 from Eroc/main
Browse files Browse the repository at this point in the history
Update Garand sights
  • Loading branch information
UndeadZeratul authored Dec 18, 2023
2 parents e1ba44f + bbbba15 commit fd9a96a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions zscript/Hexadoken/Weapons/M1 Garand/M1 Garand.zsc
Original file line number Diff line number Diff line change
Expand Up @@ -357,11 +357,11 @@ class HDGarand:AutoReloadingThingy{
int cx,cy,cw,ch;
[cx,cy,cw,ch]=screen.GetClipRect();
sb.SetClipRect(
-16+bob.x,-4+bob.y,32,32,
-16+bob.x,-4+bob.y,32,12,
sb.DI_SCREEN_CENTER
);
vector2 bobb=bob*3;
bobb.y=clamp(bobb.y,-8,8);
vector2 bobb=bob*1.2;
//bobb.y=clamp(bobb.y,-8,8);
sb.drawimage(
"garfrst",(0,-2)+bobb,sb.DI_SCREEN_CENTER|sb.DI_ITEM_TOP,
alpha:0.9,scale:(0.5,0.5)
Expand Down Expand Up @@ -928,4 +928,4 @@ class HDGarandRandom:IdleDummy{
A_SpawnItemEx(clipName,randompick(-1,1),randompick(-1,1),0,0,0,0,0,SXF_NOCHECKPOSITION);
}stop;
}
}
}

0 comments on commit fd9a96a

Please sign in to comment.