Skip to content

wgetJane/ttt-combattext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tf2-style damage numbers and hit sounds for ttt

by default, this addon shows the damage you would've dealt without armour against armoured players, since it'd be silly if you can just shoot people in the feet to check if theyre wearing armour

this addon has the option to hide damage numbers from disguised targets, but this is disabled by default because it doesnt bother me

the default damage number font is verdana, yellow, with outlines, but clients can change change colour, size, etc to whatever they want and change the font to any font installed on their computer

hitsound is disabled by default, and the default hitsound is from quake but clients can change the sound file it plays to whatever they want

this was made for ttt, but it should still work just fine on other gamemodes

how to access the settings menu:

trouble in terrorist town press F1 and go to the "Combat text" tab
sandbox press F1, go to the "Options" tab, then go to the "Combat text settings" tab
other gamemodes enter the combattext_settings command in the console

client cvars:

ttt_combattext 1 Display damage numbers
ttt_combattext_batching_window 0.25 Maximum delay in seconds between damage events in order to batch numbers, set to 0 to disable
ttt_combattext_font "Verdana" Font face used for damage numbers
ttt_combattext_color "ffff00" Color of damage numbers in hex format: RRGGBBAA
ttt_combattext_scale 1.0 Size of damage numbers
ttt_combattext_outline 1 Draw damage numbers with outlines
ttt_combattext_shadow 0 Draw damage numbers with drop shadows
ttt_combattext_antialias 0 Draw damage numbers with smooth text

ttt_combattext_unreliable 0 Use unreliable net messages which are faster and might feel better for automatic weapons at high ping

ttt_dingaling 0 Play a sound whenever you damage an enemy
ttt_dingaling_file "ttt_combattext/hitsound.ogg" The sound file to play on hit
ttt_dingaling_volume 0.75 Desired volume of the hit sound
ttt_dingaling_pitchmaxdmg 50 Desired pitch of the hit sound when a maximum damage hit (150 damage) is done
ttt_dingaling_pitchmindmg 100 Desired pitch of the hit sound when a minimal damage hit (0 damage) is done

ttt_dingaling_lasthit 0 Play a sound whenever you kill an enemy
ttt_dingaling_lasthit_file "ttt_combattext/killsound.ogg" The sound file to play on kill
ttt_dingaling_lasthit_volume 0.75 Desired volume of the last hit sound
ttt_dingaling_lasthit_pitchmaxdmg 50 Desired pitch of the last hit sound when a maximum damage hit (150 damage) is done
ttt_dingaling_lasthit_pitchmindmg 100 Desired pitch of the last hit sound when a minimal damage hit (0 damage) is done

ttt_dingaling_IGModAudioChannel 0 Use IGModAudioChannel instead of EmitSound to play hit sounds (experimental)

server cvars:

ttt_combattext_bodyarmor 1 TTT: Prevent damage text from revealing if the target is wearing body armor (1 = except against detectives and fellow traitors, 2 = no exceptions)
ttt_combattext_disguise 0 TTT: Don't show damage text if target is disguised (1 = still let hitsound play, 2 = don't let hitsound play too)
ttt_combattext_npcinfl 1 Show damage dealt by NPCs on a player's behalf
ttt_combattext_lineofsight 1 Don't show damage text if the target cannot be seen
ttt_dingaling_lasthit_allowed 1 Allow players to enable kill sounds