问答文章1 问答文章501 问答文章1001 问答文章1501 问答文章2001 问答文章2501 问答文章3001 问答文章3501 问答文章4001 问答文章4501 问答文章5001 问答文章5501 问答文章6001 问答文章6501 问答文章7001 问答文章7501 问答文章8001 问答文章8501 问答文章9001 问答文章9501

哪位达人给我传个孤岛惊魂里面的DevMode.lua文件

发布网友 发布时间:2022-06-28 21:31

我来回答

1个回答

热心网友 时间:2022-07-14 18:38

不用传啦,新建一个文本文档,复制下面的进去然后存为DevMode.lua文件放到游戏的安装目录就行啦~~

cl_display_hud = 1
cl_drunken_cam = 0
ThirdPersonView = 0
--p_model = "objects/characters/pmodels/hero/hero.cgf"

--Input:BindCommandToKey('#Movie:StopAllCutScenes()',"F7",1);
--Input:BindCommandToKey("\\SkipCutScene","F7",1);

-- Developer Cheat keys ---

--- non standard key bindings ---
-- Please NEWER use F9,F10 keys (reserved for debug purposes) (Vlad)

--Input:BindCommandToKey("#SwitchCameraMode()","f1",1);
-- Input:BindCommandToKey("#r_GetScreenShot=1","f12",1); -- this is now bindable
Input:BindCommandToKey("#ToggleAIInfo()","f11",1);

--Input:BindCommandToKey("#ToggleScreenshotMode()","f11",1);

Input:BindCommandToKey("#ToggleNewDesignerMode(10,15,0)","f4",1);

-- to be removed
Input:BindCommandToKey("#GotoNextSpawnpoint()","f2",1);
Input:BindCommandToKey("#MoreAmmo()","o",1);
Input:BindCommandToKey("#AllWeapons()","p",1);
Input:BindAction("SAVEPOS", "f9", "default");
Input:BindAction("LOADPOS", "f10", "default");
Input:BindCommandToKey("#ToggleNewDesignerMode(40,120,1)","f3",1);
Input:BindCommandToKey("#System:ShowDebugger();", "f8", 1);

-- to be removed

-- removed
--Input:BindCommandToKey("#Game.Save()","f5",1);
--Input:BindCommandToKey("#Game.Load()","f6",1);
--Input:BindCommandToKey("#DefaultSpeed()","f5",1);
--Input:BindCommandToKey("#DecreseSpeed()","-",1);
--Input:BindCommandToKey("#IncreseSpeed()","=",1);
--Input:BindCommandToKey("#p_single_step_mode=1-p_single_step_mode","[",1);
--Input:BindCommandToKey("#p_do_step=1","]",1);
--Input:BindCommandToKey("#TCM()",".",1);
--Input:BindCommandToKey("#e_hires_screenshoot=4","f10",1);
-- removed

--- temp variables for functions below ---
prev_speed_walk=p_speed_walk;
prev_speed_run=p_speed_run;

prev_speed_walk2=p_speed_walk;
prev_speed_run2=p_speed_run;

default_speed_walk=p_speed_walk;
default_speed_run=p_speed_run;

screenshotmode=0;

function ToggleAIInfo()

if (not aiinfo) then
aiinfo=1;
else
aiinfo=1-aiinfo;
end

if (aiinfo==1) then
ai_debugdraw=1;
ai_drawplayernode=1;
ai_area_info=1;
else
ai_debugdraw=0;
ai_drawplayernode=0;
ai_area_info=0;
end
end

function GotoNextSpawnpoint()

Hud:AddMessage("[NEXT]: next spawn point");

local pt;
pt=Server:GetNextRespawnPoint();

if(not pt)then -- last respawn point or there are no respawn points
pt=Server:GetFirstRespawnPoint(); -- try to get the first one
end

if(pt)then -- if there is one
Game:ForceEntitiesToSleep();

_localplayer:SetPos(pt);
_localplayer:SetAngles({ x = pt.xA, y = pt.yA, z = pt.zA });
end
end

function SetPlayerPos()
local p=_localplayer
p:SetPos({x=100,y=100,z=300});
end

-- replacement for ToggleSuperDesignerMode() and ToggleDesignerMode()
--
-- USAGE:
-- deactivate designer mode: (nil,nil,0)
-- old super designer mode (with collision): (40,120,1)
-- old designer mode (without collision): (10,15,0)
-- change values: call with (nil,nil,0) then with the new values (0.., 0.., 0/1)
--
function ToggleNewDesignerMode( speedwalk, speedrun, withcollide )

if(SuperDesignerMode_Save1~=nil or speedwalk==nil) then
Hud:AddMessage("[CHEAT]: Designer fly mode OFF");

p_speed_walk = SuperDesignerMode_Save1;
p_speed_run = SuperDesignerMode_Save2;
_localplayer.DynProp.gravity = SuperDesignerMode_Save3;
_localplayer.DynProp.inertia = SuperDesignerMode_Save4;
_localplayer.DynProp.swimming_gravity = SuperDesignerMode_Save5;
_localplayer.DynProp.swimming_inertia = SuperDesignerMode_Save6;
_localplayer.DynProp.air_control = SuperDesignerMode_Save7;
_localplayer.cnt:SetDynamicsProperties( _localplayer.DynProp );
SuperDesignerMode_Save1=nil;

-- activate collision, parameter is 0 or 1
_localplayer:ActivatePhysics(1);

else
Hud:AddMessage("[CHEAT]: Designer fly mode ON");

SuperDesignerMode_Save1 = p_speed_walk;
SuperDesignerMode_Save2 = p_speed_run;
SuperDesignerMode_Save3 = _localplayer.DynProp.gravity;
SuperDesignerMode_Save4 = _localplayer.DynProp.inertia;
SuperDesignerMode_Save5 = _localplayer.DynProp.swimming_gravity;
SuperDesignerMode_Save6 = _localplayer.DynProp.swimming_inertia;
SuperDesignerMode_Save7 = _localplayer.DynProp.air_control;

p_speed_walk = speedwalk;
p_speed_run = speedrun;
_localplayer.DynProp.gravity=0.0;
_localplayer.DynProp.inertia=0.0;
_localplayer.DynProp.swimming_gravity=0.0;
_localplayer.DynProp.swimming_inertia=0.0;
_localplayer.DynProp.air_control=1.0;
_localplayer.cnt:SetDynamicsProperties( _localplayer.DynProp );

-- deactivate collision, parameter is 0 or 1
_localplayer:ActivatePhysics(withcollide);
end
end

function ToggleScreenshotMode()

if(screenshotmode~=0) then
System:LogToConsole("SCREENSHOTMODE OFF-->SWITCH TO NORMAL");
screenshotmode=0;
hud_crosshair = "1"
cl_display_hud = "1"
r_NoDrawNear = "0"
ai_ignoreplayer = "0"
ai_soundperception = "1"
r_DisplayInfo = "1"
else
System:LogToConsole("SCREENSHOTMODE ON");
screenshotmode=1;
hud_crosshair = "0"
cl_display_hud = "0"
r_NoDrawNear = "1"
ai_ignoreplayer = "1"
ai_soundperception = "0"
r_DisplayInfo = "0"
end
end

function DecreseSpeed()

if tonumber(p_speed_walk)>5 then
p_speed_walk=p_speed_walk-5;
p_speed_run=p_speed_run-5;
System:LogToConsole("Decresed player speed by 5");
else
System:LogToConsole("You can not go any slower!");
end
end

function IncreseSpeed()

if tonumber(p_speed_walk)<500 then
p_speed_walk=p_speed_walk+5;
p_speed_run=p_speed_run+5;
System:LogToConsole("Incresed player speed by 5");
else
System:LogToConsole("You can not go any faster!");
end
end

function DefaultSpeed()

p_speed_walk=default_speed_walk;
p_speed_run=default_speed_run;
System:LogToConsole("Player speed reset");
end

function TeleportToSpawn(n)
local player = _localplayer;
local pos = Server:GetRespawnPoint("Respawn"..n);
if pos then
player:SetPos(pos);
player:SetAngles({ x = pos.xA, y = pos.yA, z = pos.zA });
end
end

-- Give the player the passed weapon, load it if neccesary
function AddWeapon(Name)

Game:AddWeapon(Name)
for i, CurWeapon in WeaponClassesEx do
if (i == Name) then
_localplayer.cnt:MakeWeaponAvailable(CurWeapon.id);
end
end
end

function MoreAmmo()

if _localplayer then
_localplayer.cnt.ammo=999;
Hud:AddMessage("[CHEAT]: Give 999 ammo");
System:LogToConsole("\001CHEAT: Give 999 ammo");
else
Hud:AddMessage("[CHEAT]: no ammo today");
end
end

function AllWeapons()

AddWeapon("AG36");
AddWeapon("Falcon");
AddWeapon("SniperRifle");
AddWeapon("MP5");
AddWeapon("RL");
AddWeapon("Shotgun");
AddWeapon("OICW");
AddWeapon("P90");
AddWeapon("M4");

_localplayer.cnt:GiveBinoculars(1);
_localplayer.cnt:GiveFlashLight(1);

Hud:AddMessage("[CHEAT]: Give all weapons");
System:LogToConsole("\001CHEAT: Give All weapons");
end
声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com
天一共卖出136张电影票,上午卖出去86张,下午卖出多少张。 17届华杯赛小学高年级组的初赛的这道题怎么做? 美特斯工业系统(中国)有限公司MTS公司发展史 mts公司是什么单位 华夏八大古姓是哪八个 ...耳鸣 单眼瞳孔上移 平常手机看得多 会不会是脑瘤 ...了首付给儿子和儿媳买了一套房子,房照上面写的是儿子和儿媳的... GBA最终幻想战略卡住 最终幻想战略版 大bug (狮子战争?就是GBA上的) GBA版最终幻想战略版的BUG问题,很急的 索尼hires audio player对音质有提升吗 新疆维吾尔自治区成立50多年来,经济快速发展,社会面貌焕然一新:GDP比50年前增加了80多倍,公路通车里 新疆维吾尔自治区成立50多年来,经济快速发展,社会面貌焕然一新:GDP超过4203亿元,比50年前增加80多倍 论述财务管理活动的类型及实务分析中需要注意的问题- 问一问 柴油发动机启动慢是什么原因 16款现代朗动碰撞安全吗 千本笔记怎么提取照片的文字 有谁知道可以把图片里的文字提取出来的手机软件????就是记笔记时直接拍下来就能扫描为可编辑的文字了 单反相机光圈快门iso什么意思 单反相机中的ISO是什么,又如何提高ISO? 为什么我一天能胖一斤呢 《神秘的偶像》 读后感800字 植物大战僵尸石牙子 语文读本上有个文章忘了,是有关石牙子于父亲和船的故事、那是什么呀? 口袋妖怪绿宝石怎么抓超梦 月映兽 迪奥西斯 石牙子 水泥漆能刷路边石牙子吗? 红色在我心 写一篇文章 要求要六年级水平 不可复制 自己写 我会好好感谢给我答案的人 请尽快 我没多少天了 不要复制,要自己做 不复制自己是什么意思 高一作文《不可复制的我》 骨灰安葬在那里有法律规定么,骨灰可以洒入大江大河么 冯仰研的视频,a1032@163.com,谢谢 BIOS American Megatrends Inc. A1032IMS V5。20 a减b差是1032。a除以b商是9。求a+b的和是多少 求好看的耽美小说。千万不要虐的!要完结的! 邮箱:a1032709273@163.com 谢谢啦。 Excel 特定单元格填充特定数值 周公解梦梦见鬼抓伤自己手 清华博士考试 英语题型 这个表带怎么更换 电饭煲倒计时怎么最后几分钟会长到10多分钟 为什么电饭煲煮到还剩十几分钟就叫要开了重关一下才可以? 苏泊尔电饭煲煮好饭后跳到定时10分钟,怎么回事? 笔记本电脑怎样登多个 男生脸上有油又长痘痘怎么办 15岁,男,脸上出油很多还长痘痘,如何控油 20岁男生毛孔很粗,长痘痘的,还脸上出油该怎么办?怎么护理好呢!最有效的办法是什么? 《欢乐狼人杀》里面哪一个角色有外婆? 桌游新手想知道哪种版本的狼人杀才是真正最好玩的? 为什么百度网盘安装不了? 一尘不染造句