James, on 26 December 2013 - 12:50 PM, said:
I'm not past adding new CON commands, but they need a good purpose.
James, on 26 December 2013 - 12:50 PM, said:
Kyle873, on 26 December 2013 - 01:43 PM, said:
Quote
function pSpawn(ply) local decider = math.random(1,5) if decider == 1 then ply:SetPos(Vector(-1809.119019,-5081.286621,151.301315)) end if decider == 2 then ply:SetPos(Vector(-1849.182983,-4930.058594,140.910019)) end if decider == 3 then ply:SetPos(Vector(-2011.731445,-4952.591797,146.132523)) end if decider == 4 then ply:SetPos(Vector(-1728.267944,-5109.243652,129.985275)) end if decider == 5 then ply:SetPos(Vector(-1580.698730,-5029.461426,114.260880)) end end hook.Add( "PlayerSpawn", "customspawn", pSpawn )
This post has been edited by The Commander: 26 December 2013 - 07:33 PM
James, on 26 December 2013 - 02:10 PM, said:
Fox, on 26 December 2013 - 01:39 PM, said:
James, on 26 December 2013 - 12:50 PM, said:
// This blows up on C-CON: getzrange sprite[pi].x sprite[pi].y sprite[pi].z player[THISACTOR].cursectnum /*out:*/ ceilz ceilhit florz florhit /*in:*/ 128 CLIPMASK0
Quote
Mblackwell, on 30 December 2013 - 02:20 PM, said:
The Commander, on 26 December 2013 - 07:31 PM, said:
function pSpawn(ply) local decider = math.random(1,5) if decider == 1 then ply:SetPos(Vector(-1809.119019,-5081.286621,151.301315)) end if decider == 2 then ply:SetPos(Vector(-1849.182983,-4930.058594,140.910019)) end if decider == 3 then ply:SetPos(Vector(-2011.731445,-4952.591797,146.132523)) end if decider == 4 then ply:SetPos(Vector(-1728.267944,-5109.243652,129.985275)) end if decider == 5 then ply:SetPos(Vector(-1580.698730,-5029.461426,114.260880)) end end hook.Add( "PlayerSpawn", "customspawn", pSpawn )
local spawnPositions = { { -1809.119019, -5081.286621, 151.301315 }, { -1849.182983, -4930.058594, 140.910019 }, { -2011.731445, -4952.591797, 146.132523 }, { -1728.267944, -5109.243652, 129.985275 }, { -1580.698730, -5029.461426, 114.260880 }, } local function pSpawn(ply) local decider = math.random(1, #spawnPositions) ply:SetPos(Vector(spawnPositions[1], spawnPositions[2], spawnPositions[3])) end hook.Add("PlayerSpawn", "customspawn", pSpawn)
James, on 26 December 2013 - 02:10 PM, said:
1 for w=0,gv.numwalls-1 do 2 local wal = wall[w] 3 if (wal.overpicnum == D.W_FORCEFIELD or wal.overpicnum == D.W_FORCEFIELD+1) then 4 if (wal.lotag==34) then 5 if (wal.cstatbits:test(85)) then -- cstat has any of the bits 64+16+4+1 set? 6 wal.cstat = 0 7 else 8 wal.cstat = 85 9 end 10 end 11 end 12 end
getwall[w].cstat tmp ifand tmp 85 { // ... }
wal.cstat = (wal.cstatbits:test(85)) and 0 or 85
James, on 26 December 2013 - 02:10 PM, said:
Helixhorned, on 01 January 2014 - 07:10 AM, said:
function pSpawn(ply) local decider = math.random(1,5) ply:SetPos(Vector(spawnPositions[decider][1], spawnPositions[decider][2], spawnPositions[decider][3])) end
function pSpawn(ply) local decider = math.random(1,5) local pos = spawnPositions[decider] ply:SetPos(Vector(pos[1], pos[2], pos[3])) end
Mike Pall said:
Helixhorned, on 01 January 2014 - 09:40 AM, said:
function pSpawn(ply) local decider = math.random(1,5) ply:SetPos(Vector(spawnPositions[decider][1], spawnPositions[decider][2], spawnPositions[decider][3])) end
This post has been edited by The Commander: 01 January 2014 - 10:18 AM
TheZombieKiller, on 18 January 2016 - 05:30 AM, said: