Jump to content
主视角中国

Recommended Posts

Posted

想不想加一只或几只会自动攻击人的狗?

这需要在图中小改一下

在其它的图中加入也是一样的,只是狗的坐标要变一下!

举例如何加入:

用记事本打开mohdm2.scr会有以下內容:

// DESTROYED VILLAGE

// ARCHITECTURE: NED

// SCRIPTING: NED

main:

// set scoreboard messages

setcvar "g_obj_alliedtext1" "Destroyed Village"

setcvar "g_obj_alliedtext2" ""

setcvar "g_obj_alliedtext3" ""

setcvar "g_obj_axistext1" ""

setcvar "g_obj_axistext2" ""

setcvar "g_obj_axistext3" ""

setcvar "g_scoreboardpic" "mohdm2"

// call additional stuff for playing this map round based is needed

if(level.roundbased)

thread roundbasedthread

level waittill prespawn

//*** Precache Dm Stuff

exec global/DMprecache.scr

exec global/door_locked.scr lock

level.script = maps/dm/mohdm2.scr

exec global/ambient.scr mohdm2

level waittill spawn

exec global/dmdog.scr //加入解命令dmdog.scr

wait 10 //10秒后

exec global/dmdog.scr::dogspawn ( -1053 -2847.22 -4.12 ) 45 1 5 "axis" 1 //注1

wait 5

exec global/dmdog.scr::dogspawn ( -1053 -2747.22 -4.12 ) 90 1 5 "allies" 1 //注2

end

//-----------------------------------------------------------------------------

roundbasedthread:

// Can specify different scoreboard messages for round based games here.

level waitTill prespawn

level waittill spawn

// set the parameters for this round based match

level.dmrespawning = 0 // 1 or 0

level.dmroundlimit = 5 // round time limit in minutes

level.clockside = kills // set to axis, allies, kills, or draw

level waittill roundstart

end

Posted

注1注2:

exec global/dmdog.scr::dogspawn ( -1053 -2847.22 -4.12 ) 45 1 5 axis 1

表示:

exec global/dmdog.scr::dogspawn //

盟军蓝色狗

德军红色狗

  • 5 months later...

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.

现在登录
×
×
  • 创建新的...