All pastes #266048 Raw Edit

Miscellany

public text v1 · immutable
·published 2006-12-03 21:06 UTC
rendered paste body
// The select code, on the serverside only, in e_select.lua
function ecs.select.selectEnt ( iPlayer, iEnt )
	if ( iPlayer:EntIndex( ) < 0 or iEnt:EntIndex( ) < 0 ) then return false end
	
	local iEnts = ecs.select.selections[ iPlayer:EntIndex( ) ];
	
	if ( iEnts == nil ) then
		iEnts = {};
	end
	
	// Check for players
	// Check for already selected
	
	// Call to the client here
	
	table.insert( iEnts, iEnt );
	ecs.select.selections[ iPlayer:EntIndex( ) ] = iEnts;
	
	iEnt:SetColor( 255, 100, 100, 255 );
end

// The client code, in e_clientside.lua, clientside only
// Draw beam effects
function ecs.clientside.drawBeam( iStart, iEnd, iColor )
//placeholder

end