Grappling gun rope visual change (#42207)
* sprite changes * system changes --------- Co-authored-by: iaada <iaada@users.noreply.github.com>
This commit is contained in:
parent
eac1f40d4d
commit
8eb0d3eb32
|
|
@ -65,7 +65,6 @@ public abstract class SharedGrapplingGunSystem : EntitySystem
|
|||
Dirty(uid, component);
|
||||
var visuals = EnsureComp<JointVisualsComponent>(shotUid.Value);
|
||||
visuals.Sprite = component.RopeSprite;
|
||||
visuals.OffsetA = new Vector2(0f, 0.5f);
|
||||
visuals.Target = uid;
|
||||
Dirty(shotUid.Value, visuals);
|
||||
}
|
||||
|
|
@ -229,10 +228,10 @@ public abstract class SharedGrapplingGunSystem : EntitySystem
|
|||
return;
|
||||
|
||||
var jointComp = EnsureComp<JointComponent>(uid);
|
||||
var joint = _joints.CreateDistanceJoint(uid, args.Weapon.Value, anchorA: new Vector2(0f, 0.5f), id: GrapplingJoint);
|
||||
var joint = _joints.CreateDistanceJoint(uid, args.Weapon.Value, id: GrapplingJoint);
|
||||
joint.MaxLength = joint.Length + 0.2f;
|
||||
joint.Stiffness = 1f;
|
||||
joint.MinLength = 0.35f;
|
||||
joint.MinLength = 1f; // Length of a tile to prevent pulling yourself into / through walls
|
||||
// Setting velocity directly for mob movement fucks this so need to make them aware of it.
|
||||
// joint.Breakpoint = 4000f;
|
||||
Dirty(uid, jointComp);
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 737 B After Width: | Height: | Size: 715 B |
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"version": 1,
|
||||
"license": "CC-BY-SA-3.0",
|
||||
"copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/456cd10d94084c7c2574f628cf7ac9b67087ba26. Recolored, adjusted, and inhands created by EmoGarbage404",
|
||||
"copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/456cd10d94084c7c2574f628cf7ac9b67087ba26. Recolored, adjusted, and inhands created by EmoGarbage404. A portion of 'hook' removed by iaada.",
|
||||
"size": {
|
||||
"x": 32,
|
||||
"y": 32
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 343 B After Width: | Height: | Size: 338 B |
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"version": 1,
|
||||
"license": "CC-BY-SA-3.0",
|
||||
"copyright": "Sprited by august-sun(GitHub)/augustsun(Discord) for Space Station 14.",
|
||||
"copyright": "Sprited by august-sun(GitHub)/augustsun(Discord) for Space Station 14. A portion of 'hook' removed by iaada.",
|
||||
"size": {
|
||||
"x": 32,
|
||||
"y": 32
|
||||
|
|
|
|||
Loading…
Reference in New Issue