mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
added new hammer hit effect by SushiTee and Crises
This commit is contained in:
parent
e63683e649
commit
9643fc36ae
Binary file not shown.
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 50 KiB |
|
@ -280,6 +280,7 @@ container.sprites.Add(Sprite("part_smoke", set_particles, 0,1,1,1))
|
|||
container.sprites.Add(Sprite("part_shell", set_particles, 0,2,2,2))
|
||||
container.sprites.Add(Sprite("part_expl01", set_particles, 0,4,4,4))
|
||||
container.sprites.Add(Sprite("part_airjump", set_particles, 2,2,2,2))
|
||||
container.sprites.Add(Sprite("part_hit01", set_particles, 4,1,4,4))
|
||||
|
||||
container.sprites.Add(Sprite("health_full", set_game, 21,0,2,2))
|
||||
container.sprites.Add(Sprite("health_empty", set_game, 23,0,2,2))
|
||||
|
|
|
@ -235,10 +235,10 @@ void CEffects::HammerHit(vec2 Pos)
|
|||
// add the explosion
|
||||
CParticle p;
|
||||
p.SetDefault();
|
||||
p.m_Spr = SPRITE_PART_EXPL01;
|
||||
p.m_Spr = SPRITE_PART_HIT01;
|
||||
p.m_Pos = Pos;
|
||||
p.m_LifeSpan = 0.4f;
|
||||
p.m_StartSize = 150.0f;
|
||||
p.m_LifeSpan = 0.3f;
|
||||
p.m_StartSize = 120.0f;
|
||||
p.m_EndSize = 0;
|
||||
p.m_Rot = frandom()*pi*2;
|
||||
m_pClient->m_pParticles->Add(CParticles::GROUP_EXPLOSIONS, &p);
|
||||
|
|
Loading…
Reference in a new issue