【自作】便宜混线检测示范

[statedef -2]


[state -2,检测用helper]

type = helper

triggerall = !ishelper

trigger1 = sysvar(1) < 1

stateno = 15

helpertype = player

name = "HI"

id = 15

pos = 0,0

postype = p1

ownpal = 0

keyctrl = 0

facing = 1

size.xscale = 1

size.yscale = 1

supermovetime = 2147483647

pausemovetime = 2147483647

ignorehitpause = 1


[state -2,防止重复召唤helper]

type = VarSet

triggerall = !ishelper

trigger1 = numhelper(15) > 0

sysvar(1) = sysvar(1) + 1

ignorehitpause = 1


[state -2,检测到时helper自毁]

type = destroyself

triggerall = ishelper(15)

trigger1 = sysvar(3) != 21*gametime%37+61*gametime%15

trigger2 = stateno != 15

ignorehitpause = 1


[state -2,检测到时本体锁血]

type = lifeset

triggerall = !ishelper

trigger1 = !numhelper(15) ;检测成功的flag

value = lifemax

ignorehitpause = 1


[state -2,检测到时本体进入120状态]

type = selfstate

triggerall = !ishelper

trigger1 = !numhelper(15) ;检测成功的flag

value = 120

ignorehitpause = 1


[statedef -3]


[state -3,检测用helper gt变量]

type = varset

triggerall = ishelper(15)

trigger1 = 1

sysvar(3) = 21*gametime%37+61*gametime%15

ignorehitpause = 1


[statedef 15]

type = U

movetype = U

physics = U

hitdefpersist = 1

movehitpersist = 1


[State 15,状态变化]

type = statetypeset

trigger1 = ishelper(15)

statetype = S

movetype = I

physics = N

ignorehitpause = 1


[State 15,无框动画防止被普通永续拉]

type = Changeanim

trigger1 = ishelper(15)

trigger1 = anim!= 8888

value = 8888

ignorehitpause = 1


[State 15,位置绑定本体]

type = BindToroot

trigger1 = ishelper(15)

time = -1

facing = 1

pos = 0, 0

ignorehitpause = 1


[State 15,不可控]

type = Ctrlset

trigger1 = ishelper(15)

value = 0

ignorehitpause = 1


[State 15,保持在画面内]

type = Screenbound

trigger1 = ishelper(15)

value = 0

ignorehitpause = 1


[State 15,此helper不可见无残影]

type = Assertspecial

trigger1 = ishelper(15)

flag = invisible

flag2 = noshadow

ignorehitpause = 1


[State 15,不推挤]

type = Playerpush

trigger1 = ishelper(15)

value = 0

ignorehitpause = 1


[State 15,常时不受击防止被普通永续拉或拉p2]

type = notHitBy

trigger1 = ishelper(15)

value = SCA,AA,AT,AP

time = -1

ignorehitpause = 1


[state 15,锁血]

type = lifeSet

trigger1 = ishelper(15)

value = lifemax

ignorehitpause = 1


火龙吐珠 评论于

这个是利用-3代码被拉p2不执行的原理
检测helper是否被敌方拉p2,
是就灭,否则就存在
如果该helper不存在,则说明敌人有混线

根据相关规定,发布评论前必须绑定手机前往绑定
你,确定要这么做吗?
正在处理中...