Skip to content

semiclip v0.2.0

Choose a tag to compare

@github-actions github-actions released this 30 Oct 15:37
· 13 commits to main since this release

For the 0.3.3 core and the later cores of the 0.3 line.

@amxts/resemiclip is @amxts/semiclip now, and it needs nothing but amxts. I moved semiclip off the ReSemiclip Metamod plugin: the rule you set drives the core's own pairs, player.walksThrough, which the core has since 0.3.3, so a server needs no plugin beside amxts. And it works as soon as it is installed: teammates walk through each other, see-through up close and not drawn right against you, before any plugin sets a rule. A rule reads as before:

semiclip.rule = (player, target) => player.team == target.team;

One thing was wrong in the old README: a pair walks through when the rule lets either one, not both - which is what ReSemiclip did too, so your rule behaves as it did. How a partner looks up close is the core's server.walkThroughLook:

server.walkThroughLook = { fadeDistance: 250, opacity: 0.4, hideDistance: 48 };

⚠️ Breaking changes

  • The package is @amxts/semiclip: npx amxts upgrade puts it in place of @amxts/resemiclip in package.json and amxts.config.ts, and rewrites a plugin's import ... from "@amxts/resemiclip". The global semiclip keeps its name, so most plugins do not change.
  • semiclip.passesThrough(player) is gone: write [...player.walksThrough].
  • It needs @amxts/core 0.3.3.
  • With no rule of a plugin's, teammates walk through each other and the look is on (server.walkThroughLook = { fadeDistance: 250, opacity: 0.4, hideDistance: 48 }). When the rule's plugin stops, teammates walk through each other again; semiclip.rule = null makes everyone solid. Nothing hands the rules back to ReSemiclip any more.

👉 Changelog

compare changes

🚀 Enhancements

  • ⚠️ Semiclip on the core's own pairs (8a828bd)
  • ⚠️ The module is semiclip, @amxts/semiclip (f64ac55)
  • Teammates walk through each other by default (3fd6edc)

⚠️ Breaking Changes

  • ⚠️ Semiclip on the core's own pairs (8a828bd)
  • ⚠️ The module is semiclip, @amxts/semiclip (f64ac55)

❤️ Contributors