其实也是伪随机,大概思路就是自动执行一个脚本,然后每隔一段时间就切换一个喷漆,因为求生在加载下一关之前,无论你切换多少次喷漆,永远还是之前的喷漆。而你过一关的时间,我们可以当作是随机的,所以就可以实现,
首先你肯定得有自己的喷漆的目录,里面放着很多喷漆文件。
比如我的是~:\steam\steamapps\common\Left 4 Dead 2\left4dead2\st
喷漆可以通过这个网站在线制作,我只是搬运汉化了一下:
https://www.fxxkcar.com/sprays/
然后你需要在这个目录,写一个脚本进去:
~:\steam\steamapps\common\Left 4 Dead 2\left4dead2\cfg
我把我脚本的内容贴出来
//fix infinite load bug: alias loadscript wait; alias spray01 "cl_logofile st/01.vtf" alias spray02 "cl_logofile st/02.vtf" alias spray03 "cl_logofile st/03.vtf" alias spray04 "cl_logofile st/04.vtf" alias spray05 "cl_logofile st/05.vtf" alias spray06 "cl_logofile st/06.vtf" alias spray07 "cl_logofile st/07.vtf" alias spray08 "cl_logofile st/08.vtf" alias spray09 "cl_logofile st/09.vtf" alias spray10 "cl_logofile st/10.vtf" alias spray11 "cl_logofile st/11.vtf" alias spray12 "cl_logofile st/12.vtf" alias spray13 "cl_logofile st/13.vtf" alias spray14 "cl_logofile st/14.vtf" alias spray15 "cl_logofile st/15.vtf" alias spray16 "cl_logofile st/16.vtf" alias spray17 "cl_logofile st/17.vtf" alias spray18 "cl_logofile st/18.vtf" alias spray19 "cl_logofile st/19.vtf" alias spray20 "cl_logofile st/20.vtf" alias spray21 "cl_logofile st/21.vtf" alias spray22 "cl_logofile st/22.vtf" alias spray23 "cl_logofile st/23.vtf" alias spray24 "cl_logofile st/24.vtf" alias spray25 "cl_logofile st/25.vtf" alias spray26 "cl_logofile st/26.vtf" alias spray27 "cl_logofile st/27.vtf" alias spray28 "cl_logofile st/28.vtf" alias spray29 "cl_logofile st/29.vtf" alias spray30 "cl_logofile st/30.vtf" alias spray31 "cl_logofile st/31.vtf" alias spray32 "cl_logofile st/32.vtf" alias spray33 "cl_logofile st/33.vtf" alias spray34 "cl_logofile st/34.vtf" alias spray35 "cl_logofile st/35.vtf" alias spray36 "cl_logofile st/36.vtf" alias spray37 "cl_logofile st/37.vtf" alias spray38 "cl_logofile st/38.vtf" alias spray39 "cl_logofile st/39.vtf" alias spray40 "cl_logofile st/40.vtf" alias spray40 "cl_logofile st/40.vtf" alias spray41 "cl_logofile st/41.vtf" alias spray42 "cl_logofile st/42.vtf" alias spray43 "cl_logofile st/43.vtf" alias spray44 "cl_logofile st/44.vtf" alias spray45 "cl_logofile st/45.vtf" alias spray46 "cl_logofile st/46.vtf" alias spray47 "cl_logofile st/47.vtf" alias spray48 "cl_logofile st/48.vtf" alias spray49 "cl_logofile st/49.vtf" alias spray50 "cl_logofile st/50.vtf" alias spray51 "cl_logofile st/51.vtf" alias spray52 "cl_logofile st/52.vtf" alias spray53 "cl_logofile st/53.vtf" alias spray54 "cl_logofile st/54.vtf" alias spray55 "cl_logofile st/55.vtf" alias spray56 "cl_logofile st/56.vtf" alias spray57 "cl_logofile st/57.vtf" alias spray58 "cl_logofile st/58.vtf" alias spray59 "cl_logofile st/59.vtf" alias spray60 "cl_logofile st/60.vtf" alias spray61 "cl_logofile st/61.vtf" alias spray62 "cl_logofile st/62.vtf" alias spray63 "cl_logofile st/63.vtf" alias spray64 "cl_logofile st/64.vtf" alias spray65 "cl_logofile st/65.vtf" alias spray66 "cl_logofile st/66.vtf" alias spray67 "cl_logofile st/67.vtf" alias spray68 "cl_logofile st/68.vtf" alias spray69 "cl_logofile st/69.vtf" alias spray70 "cl_logofile st/70.vtf" alias spray71 "cl_logofile st/71.vtf" alias spray72 "cl_logofile st/72.vtf" alias spray73 "cl_logofile st/73.vtf" alias spray74 "cl_logofile st/74.vtf" alias spray75 "cl_logofile st/75.vtf" alias spray76 "cl_logofile st/76.vtf" alias spray77 "cl_logofile st/77.vtf" alias spray78 "cl_logofile st/78.vtf" alias spray79 "cl_logofile st/79.vtf" alias spray80 "cl_logofile st/80.vtf" alias spray81 "cl_logofile st/81.vtf" alias spray82 "cl_logofile st/82.vtf" alias spray83 "cl_logofile st/83.vtf" alias spray84 "cl_logofile st/84.vtf" alias spray85 "cl_logofile st/85.vtf" alias spray86 "cl_logofile st/86.vtf" alias spray87 "cl_logofile st/87.vtf" alias spray88 "cl_logofile st/88.vtf" alias spray89 "cl_logofile st/89.vtf" alias spray90 "cl_logofile st/90.vtf" alias spray91 "cl_logofile st/91.vtf" alias spray92 "cl_logofile st/92.vtf" alias spray93 "cl_logofile st/93.vtf" alias spray94 "cl_logofile st/94.vtf" alias spray95 "cl_logofile st/95.vtf" alias spray96 "cl_logofile st/96.vtf" alias spray97 "cl_logofile st/97.vtf" alias spray98 "cl_logofile st/98.vtf" alias spray99 "cl_logofile st/99.vtf" alias spray100 "cl_logofile st/100.vtf" alias cmd_spray1 "spray01; wait 100; spray02; wait 100; spray03; wait 100; spray04; wait 100; spray05; wait 100; spray06; wait 100; spray07; wait 100; spray08; wait 100; spray09; wait 100; spray10; wait 100; spray11; wait 100; spray12; wait 100; spray13; wait 100; spray14; wait 100; spray15; wait 100; spray16; wait 100; spray17; wait 100; spray18; wait 100; spray19; wait 100; spray20; wait 100;" alias cmd_spray2 "spray21; wait 100; spray22; wait 100; spray23; wait 100; spray24; wait 100; spray25; wait 100; spray26; wait 100; spray27; wait 100; spray28; wait 100; spray29; wait 100; spray30; wait 100; spray31; wait 100; spray32; wait 100; spray33; wait 100; spray34; wait 100; spray35; wait 100; spray36; wait 100; spray37; wait 100; spray38; wait 100; spray39; wait 100; spray40; wait 100;" alias cmd_spray3 "spray41; wait 100; spray42; wait 100; spray43; wait 100; spray44; wait 100; spray45; wait 100; spray46; wait 100; spray47; wait 100; spray48; wait 100; spray49; wait 100; spray50; wait 100; spray51; wait 100; spray52; wait 100; spray53; wait 100; spray54; wait 100; spray55; wait 100; spray56; wait 100; spray57; wait 100; spray58; wait 100; spray59; wait 100; spray60; wait 100;" alias cmd_spray4 "spray61; wait 100; spray62; wait 100; spray63; wait 100; spray64; wait 100; spray65; wait 100; spray66; wait 100; spray67; wait 100; spray68; wait 100; spray69; wait 100; spray70; wait 100; spray71; wait 100; spray72; wait 100; spray73; wait 100; spray74; wait 100; spray75; wait 100; spray76; wait 100; spray77; wait 100; spray78; wait 100; spray79; wait 100; spray80; wait 100;" alias cmd_spray5 "spray81; wait 100; spray82; wait 100; spray83; wait 100; spray84; wait 100; spray85; wait 100; spray86; wait 100; spray87; wait 100; spray88; wait 100; spray89; wait 100; spray90; wait 100; spray91; wait 100; spray92; wait 100; spray93; wait 100; spray94; wait 100; spray95; wait 100; spray96; wait 100; spray97; wait 100; spray98; wait 100; spray99; wait 100; spray100; wait 100;" alias allspraycmd "cmd_spray1;wait 2000;cmd_spray2;wait 2000;cmd_spray3;wait 2000;cmd_spray4;wait 2000;cmd_spray5;wait 2000; exec start_spray.cfg" allspraycmd
大概的意思就是,自己定义一堆脚本的变量,然后写个命令执行切换,每切换一次就wait 1秒钟。这里的100是1秒(居然不是毫秒单位)
但是一个命令的长度有限制,所以我在后面又进行了拆分,每20个图一组。所以每一组命令就是2000,也就是20秒
这个脚本的命名叫做start_spray.cfg,所以在脚本的最后,有自己执行自己,形成递归循环。这个时候,我们只需要有个方案去启动它就行。
我们只需要在该cfg目录下,再放一个自动执行的脚本autoexec.cfg就可以了,这个脚本求生在启动时,会自动执行的。所以我们只需要在这个脚本里面,加一句执行我们上面新建的切换喷漆的脚本即可。exec start_spray.cfg
然后打开游戏,大功告成!!!
大佬,IT之家签到失效,不重新整一个吗?
@jk 之家专门封了我IP,很针对了,算了,不整了,我都不刷之家了。