makavelii Posted April 20, 2014 Share Posted April 20, 2014 Hey I was wondering if these commands are usable and if they will work. [command] command = tjmodeon exec = g_misc 231 ; g_mode 7 ; g_medicChargeTime 0 ; giba desc = ^7Turns on ^1TrickJump ^7settings. syntax = levels = 175 200 225 250 300 [command] command = tjmodeoff exec = g_misc 214 ; g_mode 0 ; g_medicChargeTime 10000 ; giba desc = ^7Turns off ^1TrickJump ^7settings. syntax = levels = 175 200 225 250 300 Quote Link to comment Share on other sites More sharing options...
twiti Posted April 21, 2014 Share Posted April 21, 2014 not really afaik you need map restart to change g_medicchargetime in silent mod. and 12 dren.. just not enough here is 500 medic dren + save/load command silent mod setup 1)--------shrubbot (edit levels)[command]command = tjonexec = set g_medicchargetime 4000 ; set g_skills 7 ; set g_medics 0 ; set lua_modules "TJmod.lua adrenaline.lua" ; omnibot_enable 0; restartdesc = ^7!^3tjon^7 - turn ^3TRICKJUMP ^7mode on, execute ^3!tjoff ^7once done jumpingsyntax =levels =[command]command = tjoffexec = set g_medicchargetime 45000 ; set g_skills 3 ; set g_medics 325 ; set lua_modules "none" ; omnibot_enable 1; restartdesc = ^7!^3tjoff^7 - turn ^3TRICKJUMP ^7mode offsyntax =levels = 2) copy adrenaline.lua and TJMod.lua to server "silent" directory, replace set lua_modules "none" with your default modules if any -----------------------------------adrenaline.lua----------------------------------- More Adrenaline for Medics 0.1-- by nano <nano@fooo.org>---- This is a small module for trickjump servers. It gives-- medics on spawn a specified amount of adrenaline needles.---- To add adrenaline needles you have to use the ammoindex-- 11 (WP_MEDIC_SYRINGE) and not 46 (WP_MEDIC_ADRENALINE)-- since they belong together just like WP_LUGER and WP_MP40-- (line 1396-1419 in game/bg_misc.c).--AMOUNT = 500et.CS_PLAYERS = 689function et.GetPlayerCS(clientNum, key) local cs = et.trap_GetConfigstring(et.CS_PLAYERS + clientNum) return et.Info_ValueForKey(cs, key)endfunction et_ClientSpawn(clientNum, revived) if tonumber(et.GetPlayerCS(clientNum, "c")) == 1 then et.gentity_set(clientNum, "ps.ammoclip", 11, AMOUNT) et.gentity_set(clientNum, "ps.ammo", 11, AMOUNT) endend-- end adrenaline.lua -----------------------------------TJMod.lua---------------------------------HSP_TJmod_Verison=0.4pos={}pos1={}pos2={}function et_InitGame(levelTime,randomSeed,restart)et.trap_SendConsoleCommand(et.EXEC_NOW,"sets ^8T^sJmod_verison ^s"..HSP_TJmod_Verison.."")et.trap_SendConsoleCommand(et.EXEC_NOW,"sets ^8T^sJmod_WebSite ^sliteral-party.com/et/mod")endfunction gotohell() et.gentity_set(et.trap_Argv(1), "health", -200)endfunction goto() pos[30]=et.gentity_get(et.trap_Argv(2),"origin") et.gentity_set(et.trap_Argv(1), "origin", pos[30])endfunction iwant(selfID,targetID) pos[targetID]=et.gentity_get(targetID,"origin") pos[30]=et.gentity_get(selfID,"origin") et.trap_SendServerCommand(targetID, "cp \"^8Y^sour position before moved has been saved, use ^1!goback ^sto restore\"" ) et.gentity_set(targetID, "origin", pos[30]) end function save(targetID) if et.gentity_get(targetID,"sess.sessionTeam")==1 then pos1[targetID]=et.gentity_get(targetID,"origin") et.trap_SendServerCommand(targetID, "cp \"^8S^saved\"" ) end if et.gentity_get(targetID,"sess.sessionTeam")==2 then pos2[targetID]=et.gentity_get(targetID,"origin") et.trap_SendServerCommand(targetID, "cp \"^8S^saved\"" ) end if et.gentity_get(targetID,"sess.sessionTeam")==3 then et.trap_SendServerCommand(targetID,"cp \"^8Y^sou can not ^1/save^S as a spectator.\"") end end function load(targetID) if et.gentity_get(targetID,"sess.sessionTeam")==1 then et.gentity_set(targetID,"origin",pos1[targetID]) et.trap_SendServerCommand( targetID, "cp \"^8L^soaded\"" ) end if et.gentity_get(targetID,"sess.sessionTeam")==2 then et.gentity_set(targetID,"origin",pos2[targetID]) et.trap_SendServerCommand( targetID, "cp \"^8L^soaded\"" ) end if et.gentity_get(targetID,"sess.sessionTeam")==3 then et.trap_SendServerCommand(targetID,"cp \"^8Y^sou can not ^1/load^S as a spectator.\"") end end function block(clientNum) et.trap_SendServerCommand( clientNum, "cp \"^8h^sttp://literal-party.com\n\"" ) return 1 endfunction et_ConsoleCommand() if et.trap_Argv(0)=="gotohell" then gotohell(et.trap_Argv(1)) return 1 end if et.trap_Argv(0)=="goto" then goto(et.trap_Argv(1),et.trap_Argv(2)) return 1 end if et.trap_Argv(0)=="goback" then et.gentity_set(et.trap_Argv(1), "origin", pos[et.trap_Argv(1)]) return 1 end if et.trap_Argv(0)=="iwant" then iwant(et.trap_Argv(1),et.trap_Argv(2)) return 1 endreturn 0endfunction et_ClientCommand( clientNum, command ) if command=="save" then save(clientNum) return 1 end if command=="load" then load(clientNum) return 1 end if command=="noclip" or command=="god" then block(clientNum) return 1 end return 0end--end TJMod.lua alex and clan DIABOLIK 2 Quote Link to comment Share on other sites More sharing options...
sageone Posted April 3, 2016 Share Posted April 3, 2016 I had to rename "goto" to something else (goto1) otherwise lua would fail with syntax error - at least it does now since going to 0.9.0 silent mod. Renamed variable, all is well. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.