Chicken_fortress_II 维基
Advertisement

(Respawn Time)[ | ]

重生时间即是死亡后到下一次出生的时间间隔,一般由地图设置和游戏参数共同决定 The respawntime is the duration between the last death and the next spawn, normally determined by map settings and game cvars.


参数


相关游戏参数:

cvar_respawntime_player

cvar_respawntime_max

cvar_respawntime_min

cvar_respawntime_cp

cvar_respawntime_cr

cvar_respawntime_ctf

相关地图设置:

Map_TeamRespawnTimeType ( 队伍相关 )

Map_TeamSetRespawnTime ( 队伍相关 )

Map_TeamAddRespawnTime ( 队伍相关 )

Map_TeamRespawnTimePlayerFactor ( 队伍相关 )

影响要素


对重生时间的影响,优先级为 地图设置 > 游戏参数 > HardCode(不可更改的数据)



计算公式


重生时间的单位为s,精确度为(1÷服务器帧数) 秒

在没有任何地图设置和游戏模式的地图中,重生时间计算步骤如下:

重生时间 = 0

如果 地图设置Map_TeamRespawnTimeType 不包含RespawnTimeType_IgnorePlayer, 则 {

 如果(Map_TeamRespawnTimePlayerFactor = 0) 或 (Map_RespawnTimeType 不包含RespawnTimeType_AllowMapSet)
   重生时间 = 重生时间 + 己方玩家数 × cvar_respawntime_player
 否则
   重生时间 = 重生时间 + 己方玩家数 × Map_TeamRespawnTimePlayerFactor

}

如果 地图设置Map_TeamRespawnTimeType 不包含RespawnTimeType_IgnoreMode, 则 {

 如果游戏模式为占领控制点(cp_)
   红队(攻方)重生时间 = 重生时间 - cvar_respawntime_cp × (攻方控制点数目)
   蓝队(守方)重生时间 = 重生时间 + cvar_respawntime_cp × (攻方占领点数目)
 如果游戏模式为夺旗模式(ctf_)
   重生时间 = 重生时间 + cvar_respawntime_ctf × (敌方取得情报数)
 如果游戏模式为控制点竞赛(cr_)
   重生时间 = 重生时间 + cvar_respawntime_cr × (敌方控制点数目)

}

如果 地图设置Map_TeamRespawnTimeType 包含RespawnTimeType_AllowMapSet ,则 {

 如果Map_TeamSetRespawnTime ≠ 0 
   重生时间 = Map_TeamSetRespawnTime
 如果Map_TeamAddRespawnTime ≠ 0 
   重生时间 = 重生时间 + Map_TeamAddRespawnTime

}

如果 地图设置Map_TeamRespawnTimeType 不包含RespawnTimeType_IgnoreLimit, 则 {

 如果( 重生时间 > cvar_respawntime_max )
   重生时间 = cvar_respawntime_max
 如果( 重生时间 < cvar_respawntime_min )
   重生时间 = cvar_respawntime_min

}

Advertisement