荣誉勋章MOHAA杀人激光代码公布
荣誉勋章MOHAA杀人激光代码公布
这是俺的M2L3图代码
beam1: spawn func_beam "origin" "-150 4650 -510" "endpoint" "1320 3905 -510" "targetname" "beam1"//起始点和终点 $beam1 maxoffset 0 $beam1 scale .5 $beam1 doactivate $beam1 notsolid $beam1 color ( 1 0 0 ) //激光颜色 thread beam spawn trigger_multiple "targetname" "beam1trig" $beam1trig.origin = $beam1.origin $beam1trig setsize ( -0.1 -0.1 -0.1 ) ( 1470 0.1 0.1 ) // 区域范围 $beam1trig glue $beam1 //区域范围帮定激光 $beam1trig setthread killem $beam1trig message "triggered" $beam1trig waittill trigger end beam: $beam1 speed 50 //速度50 while (1) { $beam1 movesouth 1550 //激光向南 $beam1 waitmove $beam1 moveup 57 // 向上 $beam1 waitmove $beam1 movenorth 1550 // 向北 $beam1 waitmove $beam1 movedown 57 // 向下 $beam1 waitmove } end killem:// 区域范围碰到人后内容 local.player=parm.other local.player stufftext "say o - Lazer!!" local.player loopsound welding_torch wait 0 local.player volumedamage 15 //危害性15 wait 0.5 local.player stoploopsound end
0 评论
Recommended Comments
没有要显示的评论。
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new account登录
Already have an account? Sign in here.
现在登录