[TRP SUGGESTION!] Seperate radio for infiltrators.

Status
Not open for further replies.

Ves

Treasured Member
Joined
May 20, 2011
Messages
1,370
Reaction score
13
I don't remember the format or whatever and there isn't a suggestion thread, but here it goes.

It'd be nice if we have a seperate radio for Skynet. It's annoying for an infiltrator to have to switch characters or whatever to return to Skynet radio. If anything, at least be able to switch between the normal radio, and Skynet radio with a click of a button.
 
Since in reality Terminators speak over the radio with no actual voice and use a kind of connection, unless i'm drastically mistaken. This would work.


chat_commands.lua
Code:
local function cSkynetRadio( ply, cmd, text )

	if(not ply:HasAnyTerminatorFlags()) then return ""; end;

	ply:TalkToSkynet( "[Skynet] " .. text );
	
	TS.WriteToChatLog( ply:GetRPName() .. "( " .. ply:SteamID() .. " ) [SKYNET]:" .. text );
	
end
TS.ChatCmd( "/sr ", cSkynetRadio );

player_chat.lua (hastily modified radio function)
Code:
function meta:TalkToSkynet( text )

	for k, v in pairs( player.GetAll() ) do
	
		if( v:GetTable().Initialized and not v:GetTable().CharacterMenu and v:HasAnyTerminatorFlags() ) then
		
			v:PrintMessage( 2, self:GetRPName() .. ": " .. text );
		
			if( self:Alive() and self:GetPlayerConscious() ) then

				umsg.Start( "AddChatLine", v );
					umsg.String( self:GetRPName() );
					umsg.String( text );
				umsg.End();
				
				umsg.Start( "RadioChat", v );
					umsg.String( self:GetRPName() );
					umsg.String( text );
				umsg.End();
				
			end
			
		end
		
	end
	
end

player_shared.lua (this one would probably need some editing, as i'm not sure what you have the HasCombineFlag renamed to if it's renamed at all nor what the proper terminator flags are, hell this might already exist)
Code:
function meta:HasAnyTerminatorFlags()

	if(self:IsTerminator() || self:HasTerminatorFlag( "E" )) then return true; end

	return false;
end
 
afaik you could just retune to the skynet channel- i'm not quite sure what it is exactly but ive been told its possible
 
shrug bro, this would remove the entire need for skynet players to have a radio. it's extremely simple code too.
 
I wish I knew how to code. :<
 
Main issue is no one is left here who can do it even if it is simple- All the lua people left or are inactive.
There have been bugs reported and suggestions on the previous forums that went ignored for months at a time. Its why I'm so concerned for Tekka, though that is slightly off topic.
 
i just posted all the code that's needed for it. it would require next to no modification. my 7 year old brother could finish it. :)
 
I realize that.
For example there has been an issue with certain SWeps for months now: The scope feature would stick. It took me maybe five minutes to figure it out and fix it with zero lua knowledge. No one has been able to fix it here though. Same deal with animations and other common bugs.

Though to make me look bad I'm sure this and other issues I posted about will end up being fixed now :)
 
well i mean if this wasnt fixed and it had enough support id go directly to an rda or advantage and pester them until it got done. i also have an updated animation table that they could probably use if they asked about it
 
Status
Not open for further replies.

Users who are viewing this thread