Addon Entry

Now supporting the newest garrysmods.org

New : UserScript to add a search button to any garrysmod.org download page Script Page Install It!

Mirrors

There are no mirrors, request one in the comment section below.
File: TalkingDamageSystem NEW
Version: 0
Garrysmod.org URL: http://www.garrysmod.org/downloads/?a=view&id=90510
Description: Talking Damage System by Jvs


Installation:
-garrysmod/garrysmod/Addons,of course
-To activate the rebel speak,use the male or female rebel models,to activate the combine speak,use
the combine player model,same for other models.

Features:
-Team fortress 2 talk time,you can't talk if you did earlier.
-Receive damage from anything,and finally hear yourself struggling from the pain.
-Support for fragmented combine sounds,see the combine module for an example of it.
-Danger Sounds,see the line 174 of tds_functions to see an example.
-Every entity emitting a sound will show a speaker icon,even players.
-You can choose whenever add an another table to the player speak queue (like the hev suit)
-The entity can choose whenever draw the speaker icon clientside,the variable is DontDrawSpeaker (see tds_radio)

Note:

This is now a real addon,you can use it withouth the sandbox gamemode,for example,for GDM,or Half Life 2 Campaign
I made all the modules myself,don't confuse this with the work of WorkShipper's one

Todo:

-Find a way to use ent:Speaktable(table,true) withouth overriding the concept type,i know,that's irritating.
-Find a way to emit again a sound if the receiver didn't hear it in the first time and the sound it's still
playing,(example,an hl2 song,but the concept only,and giving to the receiver the timeleft to the sound)
-.VCD style entity/npc/players interaction,i'm working secretely on this one :V
-Make the code less...suckish?

Changelog:

-Made the changelog :V
-The icon now shows on the emitter's head,not on where it's EyePos or GetShootPos should be.
-Added a new tds_radio,the old one renamed to tds_radio_old,this new radio has 9 channels,and works wireless,
press use to change channel.
-Now your ragdoll will show the speaker icon if you are dead but still talking.
-CreateDangerSound now returns the tds_dangersound entity.
-New entity hook: "ListenToSound(emitter,sound,concept)",see tds_radio for an example.
-Icon changes depending on the sound concept played.
(TLK_CONCEPT_DANGER=!icon,TLK_CONCEPT_SENTENCE=Speaker icon,etc)
-Added a new hook,"OnPlayerTalk",this specify when an entity can talk,this gets called after Entity:CanSpeak()
so when this hooks gets called generally the player can speak,see tds_functions for an example.
-Players talking underwater will emit a bubble from theyr mouth,if they don't have one,no bubble emitted.
-Added new entity conditions: Entity:ShouldChoke(),returns true or false.
-Added new entity functions: Entity:SetCanTalkUnderWater(bool),Entity:GetCanTalkUnderWater().
-Added new two sent: tds_portal_radio and tds_samvox.
-Removed tds_npc,it's useless for now.
-Added new entity function: Entity:Drown(),this just emits a drown sound,nothing else for now
-Finally added the class module system,see autorun/tds_classes/default.lua for an example of it
-Added tds_getclasses command to show the player which classes are on the server
-Added Entity:SetCanTalkDead(bool) and Entity:GetCanTalkDead()
-Added MetroPolice,Father Grigori,Barney modules,have fun


Image: TalkingDamageSystem