UID146955
主题
帖子
注册时间2019-8-4
最后登录1970-1-1
在线时间 小时
帖子
主题

|
Steam 社区昵称:dkymore 资料 加好友 聊天 库存 截图 好友 群组 愿望 推荐
Ta的皮肤
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 dkymore 于 2020-8-6 09:34 编辑
ZE单机跑图练习的设置预设
指令是什么V社(Valve)的Source起源引擎制作的游戏都可以开发者控制台,简称控制台console,使用控制台可以实现很多游戏的设置面板无法提供的功能,比如跳投、切换准星参数、颜色等等特殊功能都是利用了控制台的指令实现的,这也是CS游戏的一大特色了。在游戏的设置菜单里,游戏设置-游戏-启用开发者控制台选是即可启用控制台,之后按下~即可开关控制台并使用各种指令。 比如sv_cheats 1可以开启作弊模式 (当然你要有OP权限)
cfg是什么CFG是Config【设置】的简写,把各种指令写入.cfg文件再在控制台输入exec xxx.cfg 就能快速输入指令 使用CFG可以避免繁琐的输入指令的过程
功能见下在游戏中 控制台输入map 你想跑的图
再在控制台输入exec zepractice.cfg生效!
扩展脚本 - // 跑图CFG扩展脚本 by Purp1e
- // 本文件放在此处 ..\Counter-Strike Global Offensive\csgo\scripts\vscripts
- // 加载方法 script_execute practiceExt
- // 建议绑定的快捷键 分别为i/o/[/]
- // 若不使用practice.cfg 单独使用本脚本 请删去以下四行的注释//
- //SendToConsole( @"bind i ""script storeA()"" " );
- //SendToConsole( @"bind o ""script loadA()"" " );
- //SendToConsole( @"bind [ ""script storeB()"" " );
- //SendToConsole( @"bind ] ""script loadB()"" " );
- // 初始化
- ent <- null; //定义物体变量
- command <- null; //定义指令变量,存放指令字符串
- PositionA <- Vector(0, 0, 0); //定义A位置变量
- AngleA <- Vector(0, 0, 0); //定义A角度变量
- PositionB <- Vector(0, 0, 0); //定义B位置变量
- AngleB <- Vector(0, 0, 0); //定义B角度变量
- name <- ["knife_gut", "knife_Flip", "bayonet", "knife_m9_bayonet", "knife_Karambit", "knife_survival_bowie", "knife_butterfly", "knife_tactical", "knife_push", "knife_falchion", "knife_gypsy_jackknife", "knife_stiletto", "knife_ursus", "knife_widowmaker", "knife_ghost", "knife_css", "knife_canis", "knife_outdoor", "knife_cord", "knife_Skeleton"];
- name_print <- ["穿肠刀", "折叠刀", "刺刀 ", "M9刺刀", "爪子刀", "鲍伊猎刀", "蝴蝶刀", "猎杀者匕首", "暗影双匕", "弯刀", "折刀", "短剑", "熊刀", "锯齿爪刀", "幽灵之刃", "海豹短刀", "求生匕首", "流浪者匕首", "系绳匕首", "骷髅匕首"];
- choice <- [0, 0, 0, 0];
- printl( @">>> 跑图CFG扩展脚本初始化完成" );
- //生成刀
- function dropknife(i) {
- SendToConsole( "slot3" );
- local n = i * 5 + choice[ i ];
- SendToConsole( "give weapon_" + name[ n ] );
- ScriptPrintMessageCenterAll( name_print[n] + " Get" );
- choice[i] = (choice[i] + 1 ) % 5;
- }
- //使刀可捡并丢出原来的刀
- function knifeout() {
- EntFire("weapon_knife", "addoutput", "classname weapon_knifegg");
- SendToConsole( "drop" );
- }
- // 因为无法获得pitch 竖直角度总是为0 故此处主要用作弹出提示 等待改进
- function storeA() {
- //获取玩家实体 获取时总是1次成功1次失败故使用 或 运算
- if ( ( ent = Entities.FindByClassname(ent, "player") ) != null || ( ent = Entities.FindByClassname(ent, "player") ) != null ) {
- PositionA = ent.GetOrigin(); //获取位置
- AngleA = ent.GetAngles(); //获取角度
- ScriptPrintMessageCenterAll( "已保存点A" );
- printl( ">>> 点A指令如下" )
- }
- //else {
- // ScriptPrintMessageCenterAll( "保存点A失败,位置为(0, 0, 0)" );
- //}
- }
- function loadA() {
- if( PositionA.x || PositionA.y || AngleA.x || AngleA.y || AngleA.z ) {
- command = "setpos " + PositionA.x + ", " + PositionA.y + ", " + PositionA.z + ";";
- //command = command + "setang " + AngleA.x + ", " + AngleA.y + ", " + AngleA.z + ";" ;
- SendToConsole( command );
- SendToConsole( "-moveleft;-moveright;-forward;-back" );
- ent.SetVelocity( Vector(0,0,0) );
- ScriptPrintMessageCenterAll( "已回到点A" );
- }
- //else {
- // ScriptPrintMessageCenterAll( "回到点A失败,位置为(0, 0, 0)" );
- //}
- }
- function storeB() {
- //获取玩家实体
- if ( ( ent = Entities.FindByClassname(ent, "player") ) != null || ( ent = Entities.FindByClassname(ent, "player") ) != null ) {
- PositionB = ent.GetOrigin(); //获取位置
- AngleB = ent.GetAngles(); //获取角度
- ScriptPrintMessageCenterAll( "已保存点B" );
- printl( ">>> 点B指令如下" )
- }
- //else {
- // ScriptPrintMessageCenterAll( "保存点B失败,位置为(0, 0, 0)" );
- //}
- }
- function loadB() {
- if( PositionB.x || PositionB.y || AngleB.x || AngleB.y || AngleB.z ) {
- command = "setpos " + PositionB.x + ", " + PositionB.y + ", " + PositionB.z + ";";
- //command = command + "setang " + AngleB.x + ", " + AngleB.y + ", " + AngleB.z + ";" ;
- SendToConsole( command );
- SendToConsole( "-moveleft;-moveright;-forward;-back" );
- ent.SetVelocity( Vector(0,0,0) );
- ScriptPrintMessageCenterAll( "已回到点B" );
- }
- //else {
- // ScriptPrintMessageCenterAll( "回到点B失败,位置为(0, 0, 0)" );
- //}
- }
- function cam( i, j ) {
- //分享摄像机运动指令 A to B . i 和 j 与运动速度相关
- if( PositionA.x || PositionA.y || AngleA.x || AngleA.y || PositionB.x || PositionB.y || AngleB.x || AngleB.y ) {
- command = "spec_mode 6;";
- command = command + "spec_goto " + PositionA.x + " " + PositionA.y + " " + PositionA.z + " " + AngleA.x + " " + AngleA.y +";";
- command = command + "spec_lerpto " + PositionB.x + " " + PositionB.y + " " + PositionB.z + " " + AngleB.x + " " + AngleB.y + " " + i + " " + j + ";" ;
- printl( "" );
- printl( ">>> 摄像机运动指令已生成" );
- printl( "" );
- printl( command );
- }
- else {
- ScriptPrintMessageCenterAll( "分享摄像机运动指令失败,点A或B位置为(0, 0, 0)" );
- }
- }
复制代码
演示
自动连跳
生成刀
文件
zepractice.cfg
(8.02 KB, 下载次数: 19)
|
评分
-
查看全部评分
上一篇: 我又来了,又是洛克人下一篇: 永夜火
|