i dunno if this is the right place to post this but anyways, anyone know where to find necromancer’s TDM luascript please
Necromancer's TDM.lua
Here is a lua which may help you creating this (Necromancer has this too but his verison is crypted):
randomspawn.lua (made by PerlO_oung?!)
spawndistance = 1
function et_InitGame(levelTime,randomSeed,restart)
mclients = tonumber( et.trap_Cvar_Get( "sv_maxClients" ) )
mapname = et.trap_Cvar_Get( "mapname" )
local loadtable = loadfile(et.trap_Cvar_Get("fs_homepath") .. '/etpub/spawns/'..mapname..'.lua') --- load spawns table
if loadtable ~= nil then
loadtable()
else
--et.trap_SendServerCommand(-1, "chat \"^3LOADSPWANPOINTS^7: ^7No valid spawnsfile found for this map.\"" )
et.G_Print("WARNING: SPAWNPOINTS failed to load "..mapname..".lua
")
quit = 1
end
end
function dist(a ,b)
local dx = math.abs(b[1] - a[1])
local dy = math.abs(b[2] - a[2])
local dz = math.abs(b[3] - a[3])
local d = math.sqrt((dx ^ 2) + (dy ^ 2) + (dz ^ 2))
return math.floor(d / 52.4934)
end
function et_ClientSpawn(cno,revived)
execute = 1
if quit ~= 1 then
while execute == 1 do
rpos = {}
spawn = randomspawn()
for i=0, mclients-1, 1 do
if et.gentity_get(i,"pers.connected") == 2 and cno ~= i then
CurrentPos(i)
end
end
table.sort(rpos)
if rpos[1] == nil then execute = 0 break end
end
et.gentity_set(cno, "origin", spawn)
end
end
function randomspawn()
local random = SPAWN[math.random(table.getn(SPAWN))]
return random
end
function CurrentPos(cno)
local cnopos = et.gentity_get(cno,"r.currentOrigin")
distance = dist(cnopos,spawn)
if distance > spawndistance then
table.insert(rpos,distance)
end
end
Just change the path to your mod. Create a “spawns” folder and put the spawn files in there (for example oasis.lua).
example for oasis.lua
SPAWN = {}
SPAWN[1] = {27, 2038, -325}
SPAWN[2] = {2405, 1752, -577}
SPAWN[3] = {3048, 1890, -458}
SPAWN[4] = {1433, 3880, -93}
SPAWN[5] = {5206, 4585, -835}
SPAWN[6] = {3372, 5834, -207}
SPAWN[7] = {3332, 5842, -552}
SPAWN[8] = {2177, 4501, -215}
SPAWN[9] = {2405, 4720, -215}
SPAWN[10] = {2175, 6209, -383}
SPAWN[11] = {3874, 8024, -127}
SPAWN[12] = {3087, 7171, -415}
SPAWN[13] = {2441, 4882, -491}
SPAWN[14] = {3144, 6396, -354}
SPAWN[15] = {3802, 7389, -431}
SPAWN[16] = {3361, 6821, -450}
SPAWN[17] = {4912, 7806, -415}
SPAWN[18] = {5359, 7786, -417}
SPAWN[19] = {5126, 6698, -135}
SPAWN[20] = {6365, 7672, -214}
SPAWN[21] = {6399, 6465, -215}
SPAWN[22] = {6444, 6485, -466}
SPAWN[23] = {6841, 5184, -420}
SPAWN[24] = {6854, 4305, -398}
SPAWN[25] = {5573, 4558, -839}
SPAWN[26] = {4770, 6248, -718}
SPAWN[27] = {7176, 3999, -375}
SPAWN[28] = {8156, 5612, -383}
SPAWN[29] = {9374, 5989, -241}
SPAWN[30] = {9768, 5458, -361}
SPAWN[31] = {9765, 3707, -353}
SPAWN[32] = {9505, 3065, -300}
You can get the positions with /viewpos
Thank you Micha, I have it
http://forums.warchest.com/showthread.php/34238-Script-sharing
i thought u were the author of that script

No but Perlo made this for my infected mod. Just thought it could be usefull for editing. Necromancers rs lua was crypted 
ah, sorry. im still alive though,
should of asked me directly :rolleyes:
which one of my scripts was compiled? i’ll give you the source!
i’ll try to find my latest copy of KMOD+ to release.
what else?
edit:
whats the latest version? i found kmod+ v0.6.0, was there a newer one?
Is there a place i can upload it to?
most if not all the lua scripts i created over time, some that were never published before, now with open source code!
https://drive.google.com/folderview?id=0ByaF1xpj7InjWmlJWTM3cmZPU00&usp=sharing
KMOD+ and other compiled scripts had problems running on different machines because they were compiled. running the source should be much easier and with less errors and trouble,
if you have questions don’t hesitate to ask.
if something isn’t there, tell me and i’ll search my drive to add it.
in theory its not exactly (it would save your skills, so if you got level 2 light weapons and left, it would give you back level 2 light weapons, but your scoreboard XP would be reset/0, so its more like saving your rank/awards which is what people really care about), but in reality it unfortunately does not work 
i put so much time, thought and effort making it, but then ETpro f*ed it up 
etpro server is crashing frequently after updating the client skill, so its unusable on ETpro.
if i remember correctly, it crashes after the lua et_UpgradeSkill() function is returning to the mod, so its a mod side bug.
i thought about reporting it on the ETpro forums back then, but i figured its useless since they don’t want to allow xpsave on their mod, so they won’t do anything about it.
but you reminded me that i also had an xpshare.lua! so i dug it up and uploaded it. it allows (or at least allowed) to share XP between different etpub/NQ servers (cross-modes too).
also regarding my TDM module, i believe they were referring to my rs (random spawn) module that was encrypted. its slightly better then the one posted above in that it won’t spawn a player next to an enemy player unless there are no other options.
this is very frustrating in BF3 TDM where you kill someone, he re-spawns behind you and knifes you.
[QUOTE=3Necromancer;472221]most if not all the lua scripts i created over time, some that were never published before, now with open source code!
https://drive.google.com/folderview?id=0ByaF1xpj7InjWmlJWTM3cmZPU00&usp=sharing
KMOD+ and other compiled scripts had problems running on different machines because they were compiled. running the source should be much easier and with less errors and trouble,
if you have questions don’t hesitate to ask.
if something isn’t there, tell me and i’ll search my drive to add it.[/QUOTE]
Could you upload it somewhere else (in a zip or rar), please?
netload.in or some other side.
