To install, put this into your 'clockwork/plugins/' directory and
remove the original version with the name 'displaytyping'.
To add sounds to a faction when typing, you need to go into the faction's file and add the following line(s) to the faction table:
Spoiler: Faction noise example
Code:
FACTION.startChatNoise = "npc/overwatch/radiovoice/on1.wav"; -- the sound to play when a player starts talking
FACTION.endChatNoise = "npc/overwatch/radiovoice/off4.wav"; -- the sound to play when a player finishes talking
FACTION.radioStartChatNoise = "npc/metropolice/vo/on2.wav"; -- the sound to play if talking down radio, optional
Spoiler: Full faction noise example
Code:
--[[
© 2013 CloudSixteen.com do not share, re-distribute or modify
without permission of its author ([email protected] ).
--]]
local FACTION = Clockwork.faction:New("Metropolice Force");
FACTION.isCombineFaction = true;
FACTION.whitelist = true;
FACTION.material = "halfliferp/factions/mpf";
FACTION.models = {
female = {"models/police.mdl"},
male = {"models/police.mdl"}
};
FACTION.startChatNoise = "npc/overwatch/radiovoice/on1.wav"; -- the sound to play when a player starts talking
FACTION.endChatNoise = "npc/overwatch/radiovoice/off4.wav"; -- the sound to play when a player finishes talking
FACTION.radioStartChatNoise = "npc/metropolice/vo/on2.wav"; -- the sound to play if talking down radio, optional
If you're using the beta rank system, you can also add these variables to a faction's rank table if you want to - however this is
not mandatory .
Spoiler: Rank noise example
Code:
FACTION.ranks = {
["Commander"] = {
position = 1,
startChatNoise = "npc/overwatch/radiovoice/on1.wav",
endChatNoise = "npc/overwatch/radiovoice/off4.wav"
}
};