Repository navigation
semiclip v0.2.0
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 upgradeputs it in place of@amxts/resemiclipinpackage.jsonandamxts.config.ts, and rewrites a plugin'simport ... from "@amxts/resemiclip". The globalsemiclipkeeps its name, so most plugins do not change. semiclip.passesThrough(player)is gone: write[...player.walksThrough].- It needs
@amxts/core0.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 = nullmakes everyone solid. Nothing hands the rules back to ReSemiclip any more.
👉 Changelog
🚀 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
❤️ Contributors
- Ernest Manukyan (@kukson777)