找回密码
 点一下
查看: 1734|回复: 5

有人帮忙分析一下技能么

  [复制链接]
发表于 2007-10-9 17:26:06 | 显示全部楼层 |阅读模式
如题  请问这个地图里的射几技能是用什么技能改的   比如最简单的AWP   他无论地形层次射出去的都是直线的 而且射到物体不会穿透物体

EliminationTournament1,3b.w3x

1.03 MB, 下载次数: 95

发表于 2007-10-9 18:35:30 | 显示全部楼层
是成图吗?这么大
回复

使用道具 举报

 楼主| 发表于 2007-10-9 18:55:28 | 显示全部楼层
是加了秘的  T看不见 其他到还好  真想知道是怎么做的
回复

使用道具 举报

发表于 2007-10-11 19:16:50 | 显示全部楼层
打中物体不穿透可以用惊吓改
回复

使用道具 举报

发表于 2007-10-12 11:59:27 | 显示全部楼层
因为他所有的射击物件都是用计时器去移动的。原理和澄海的老牛冲撞相同。我打开了地图的J,比如里面的这个函数:

function CreateParticle takes player p,integer utype,real x,real y,real facing returns unit
local unit u=CreateUnit(p,utype,x,y,facing)
set x=x+CosBJ(facing)*VectorGetX(SpawnPlaceOffset())+SinBJ(facing)*VectorGetY(SpawnPlaceOffset())
set y=y+SinBJ(facing)*VectorGetX(SpawnPlaceOffset())+CosBJ(facing)*VectorGetY(SpawnPlaceOffset())
call SetUnitX(u,x)
call SetUnitY(u,y)
if not clsParticleCreate(u) then
call BJDebugMsg("|cffff0000Error:|r could not initialize particle class in function |cffffcc00CreateParticle|r, see the documentation for help.")
call RemoveUnit(u)
return null
endif
call MakeUnitFlyable(u)
call GroupAddUnit(udg_particleGroup,u)
return u
endfunction

还有这个函数,用于删除激光:

function LaserKillUnit takes nothing returns nothing
local unit u=I2U(GetStoredInteger(GC(),H2S(GetExpiredTimer()),"laser"))
local integer i=H2I(u)
local group g=I2G(GetStoredInteger(GC(),I2S(i),"hitunitsgroup"))
call FlushStoredInteger(GC(),I2S(i),"hitunitsgroup")
call FlushStoredInteger(GC(),I2S(i),"bounce")
call FlushStoredInteger(GC(),H2S(GetExpiredTimer()),"laser")
call FlushStoredInteger(GC(),I2S(i),"deathtimer")
call KillUnit(u)
call RemoveParticle(u,true)
call DestroyGroup(g)
call PauseTimer(GetExpiredTimer())
call DestroyTimer(GetExpiredTimer())
set u=null
endfunction
回复

使用道具 举报

 楼主| 发表于 2007-10-13 00:46:16 | 显示全部楼层
弄用惊吓改?  能否详细说明 谢谢
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 点一下

本版积分规则

Archiver|移动端|小黑屋|地精研究院

GMT+8, 2024-5-18 18:54 , Processed in 0.126019 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表