Skip to content

Commit 09ba6a0

Browse files
authored
Merge pull request #953 from hpdodger/welder_icon
added seal icon to radial menu "request seal" item
2 parents 6d7698e + cbc6efc commit 09ba6a0

9 files changed

Lines changed: 21 additions & 2 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
UnlitGeneric
2+
{
3+
$basetexture "vgui\swarm\Emotes\EmoteWelder"
4+
$translucent 1
5+
$surfaceprop metal
6+
$vertexcolor 1
7+
$vertexalpha 1
8+
$no_fullbright 1
9+
$ignorez 1
10+
}
16.2 KB
Binary file not shown.

reactivedrop/scripts/radialmenu.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
}
2626
"SouthEast"
2727
{
28-
"command" "cl_chatter 39"
28+
"command" "cl_emote 15"
2929
"text" "#asw_speech_rseal"
3030
}
3131
"South"

src/game/client/swarm/c_asw_marine.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,7 @@ C_ASW_Marine::C_ASW_Marine() :
461461
m_fEmoteAnimeSmileTime = 0;
462462
m_fEmoteQuestionTime = 0;
463463
m_fEmoteThanksTime = 0;
464+
m_fEmoteWeldTime = 0;
464465
m_flLastMedicCall = 0;
465466
m_flLastAmmoCall = 0;
466467

src/game/client/swarm/c_asw_marine.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ class C_ASW_Marine : public C_ASW_VPhysics_NPC, public IASWPlayerAnimStateHelper
304304
float m_fEmoteAnimeSmileTime;
305305
float m_fEmoteQuestionTime;
306306
float m_fEmoteThanksTime;
307+
float m_fEmoteWeldTime;
307308
CNetworkVar( float, m_flLastMedicCall );
308309
CNetworkVar( float, m_flLastAmmoCall );
309310

src/game/client/swarm/vgui/asw_hud_emotes.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class CASWHudEmotes : public CASW_HudElement, public vgui::Panel
6868
CPanelAnimationVarAliasType( int, m_nAnimeTexture, "AnimeEmoteTexture", "vgui/swarm/Emotes/EmoteAnime", "textureid" );
6969
CPanelAnimationVarAliasType( int, m_nQuestionTexture, "QuestionTexture", "vgui/swarm/Emotes/EmoteQuestion", "textureid" );
7070
CPanelAnimationVarAliasType( int, m_nThanksTexture, "ThanksTexture", "vgui/swarm/Emotes/EmoteThanks", "textureid" );
71-
71+
CPanelAnimationVarAliasType( int, m_nWeldEmoteTexture, "WeldEmoteTexture", "vgui/swarm/Emotes/EmoteWelder", "textureid" );
7272
CPanelAnimationVarAliasType( int, m_nWrenchTexture, "WrenchTexture", "vgui/swarm/ClassIcons/EngineerIcon", "textureid" );
7373
CPanelAnimationVarAliasType( int, m_nSentryUpTexture, "SentryUpTexture", "vgui/swarm/ClassIcons/SentryBuild", "textureid" );
7474
CPanelAnimationVarAliasType( int, m_nSentryDnTexture, "SentryDnTexture", "vgui/swarm/ClassIcons/SentryDismantle", "textureid" );
@@ -148,6 +148,8 @@ void CASWHudEmotes::PaintEmotesFor( C_ASW_Marine *pMarine )
148148
PaintEmote( pMarine, pMarine->m_fEmoteQuestionTime, m_nQuestionTexture );
149149
if ( pMarine->m_iClientEmote & ( 1 << 14 ) )
150150
PaintEmote( pMarine, pMarine->m_fEmoteThanksTime, m_nThanksTexture );
151+
if (pMarine->m_iClientEmote & (1 << 15) )
152+
PaintEmote(pMarine, pMarine->m_fEmoteWeldTime, m_nWeldEmoteTexture);
151153

152154
bool bBuildingSentry = false;
153155
bool bWelding = false;

src/game/server/swarm/asw_marine.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4496,6 +4496,9 @@ void CASW_Marine::DoEmote( int iEmote )
44964496
case 14:
44974497
GetMarineSpeech()->Chatter( CHATTER_THANKS );
44984498
break;
4499+
case 15:
4500+
GetMarineSpeech()->Chatter( CHATTER_REQUEST_SEAL_DOOR );
4501+
break;
44994502
default:
45004503
iEmote = 6;
45014504
break;

src/game/server/swarm/asw_marine.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,7 @@ class CASW_Marine : public CASW_VPhysics_NPC, public IASWPlayerAnimStateHelpers,
697697
float m_fEmoteAnimeSmileTime;
698698
float m_fEmoteQuestionTime;
699699
float m_fEmoteThanksTime;
700+
float m_fEmoteWeldTime;
700701
CNetworkVar( float, m_flLastMedicCall );
701702
CNetworkVar( float, m_flLastAmmoCall );
702703

src/game/shared/swarm/asw_marine_shared.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ void CASW_Marine::TickEmotes( float d )
271271
TickEmote( d, 1 << 6, m_fEmoteAnimeSmileTime );
272272
TickEmote( d, 1 << 7, m_fEmoteQuestionTime );
273273
TickEmote( d, 1 << 14, m_fEmoteThanksTime );
274+
TickEmote( d, 1 << 15, m_fEmoteWeldTime );
274275
}
275276

276277
bool CASW_Marine::TickEmote( float d, int bit, float &fEmoteTime )

0 commit comments

Comments
 (0)