Raised This Month: $51 Target: $400
 12% 

Death Sprite Effect (like CSO)


Post New Thread Reply   
 
Thread Tools Display Modes
csaba1998
Member
Join Date: Mar 2013
Old 03-19-2013 , 13:52   Re: Death Sprite Effect (like CSO)
Reply With Quote #11

I reupload
csaba1998 is offline
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 03-19-2013 , 16:11   Re: Death Sprite Effect (like CSO)
Reply With Quote #12

Quote:
Originally Posted by yokomo View Post
Not by me or JC, it's by eXcalubur maybe
maybe I meant another plugin, but I reminds this one too: [ZP] CSO In-Game Theme
__________________

Last edited by ANTICHRISTUS; 03-19-2013 at 16:12.
ANTICHRISTUS is offline
Erdener
Senior Member
Join Date: Apr 2010
Location: Turkey
Old 03-19-2013 , 18:05   Re: Death Sprite Effect (like CSO)
Reply With Quote #13

Thnx, nice work
Erdener is offline
tomax079
Member
Join Date: Apr 2009
Location: Lithuania
Old 03-20-2013 , 03:30   Re: Death Sprite Effect (like CSO)
Reply With Quote #14

Can you make option to disable sound's, or just remove them and upload plugin?
tomax079 is offline
Send a message via Skype™ to tomax079
FanatikSVK
Member
Join Date: Aug 2012
Location: Slovakia
Old 03-20-2013 , 09:41   Re: Death Sprite Effect (like CSO)
Reply With Quote #15

WOW, good job man...
__________________
FanatikSVK is offline
Send a message via Skype™ to FanatikSVK
csaba1998
Member
Join Date: Mar 2013
Old 03-20-2013 , 14:21   Re: Death Sprite Effect (like CSO)
Reply With Quote #16

I tried it.
csaba1998 is offline
tulga
Junior Member
Join Date: May 2010
Old 03-21-2013 , 13:30   Re: Death Sprite Effect (like CSO)
Reply With Quote #17

The idea was great, but coding technique is so bad.

Last edited by tulga; 03-21-2013 at 13:31.
tulga is offline
eforie
BANNED
Join Date: Dec 2008
Location: Romania
Old 03-21-2013 , 14:38   Remoded
Reply With Quote #18

I just wanna use headshot & knife (sprites & sounds)
I edited the plugin corectly ?


PHP Code:
//AMXXPC compile.exe
// by the AMX Mod X Dev Team
 
//// deatheffect.sma
// D:\ecran\compiler-boost-cs\deatheffect.sma(19) : warning 217: loose indentati
on
// D:\ecran\compiler-boost-cs\deatheffect.sma(20) : warning 217: loose indentati
on
// D:\ecran\compiler-boost-cs\deatheffect.sma(30) : warning 217: loose indentati
on
// D:\ecran\compiler-boost-cs\deatheffect.sma(31) : warning 217: loose indentati
on
// D:\ecran\compiler-boost-cs\deatheffect.sma(32) : warning 217: loose indentati
on
// Header size:           1000 bytes
// Code size:             7824 bytes
// Data size:             1860 bytes
// Stack/heap size:      16384 bytes; estimated max. usage=780 cells (3120 bytes
)
// Total requirements:   27068 bytes
//
// 5 Warnings.
// Done.
//
// Compilation Time: 0.62 sec
// ----------------------------------------
Press enter to exit ... 
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <fakemeta>
#include <dhudmessage>
new knife_killheadshot
new level[32]
new 
bool:kills[32]
 
public 
plugin_precache()
{
        
headshot precache_model("sprites/headshot.spr")
        
knife_kill precache_model("sprites/knife_kill.spr")
     
precache_sound("misc/headshot.wav")
        
precache_sound("misc/knife_kill.wav")
 
}
public 
plugin_init()
{
 
register_plugin("Death Sprite Effect","1.5","RaZzoR")
        
register_event("DeathMsg","onDeath","a")
        
register_event("DeathMsg","onDeath_level","a")
       
register_event("TextMsg""eRestart""a""2&#Game_C""2&#Game_w")
  
register_event("SendAudio""eEndRound""a""2&%!MRAD_terwin""2&%!MRAD_ctwin""2&%!MRAD_rounddraw")
 
register_event("RoundTime""eNewRound""bc")
}
 
 
public 
client_disconnect(id)
{
 
level[id]= 0
}
public 
client_putinserver(id)
{
 
level[id]= 0
}
public 
onDeath()
{
        new 
name_attacker[32]
 new 
name_victim[32]
        new 
wpn[3]
        new 
hs read_data(3)
        new 
attacker read_data(1)
        new 
victim read_data(2)
        
get_user_name(attackername_attacker31)
 
get_user_name(victimname_victim31)
        
read_data(4,wpn,2)
 
        if (
wpn[0] != 'k' && wpn[1] != 'r' && !can_see_fm(attackervictim)) 
 {
  if (
hs)
                {
                  
set_dhudmessage(25500, -1.00.2006.03.00.11.5
           
show_dhudmessage(attacker"FALON AT FEJLOVES!^n-|IGEN! :D|-")
                  
client_cmd(attacker,"spk misc/headshot")
                }
 }
        else if (
hs && wpn[0] != 'k' && wpn[1] != 'r')
 {
  
show_sprite(victimheadshot)
                
client_cmd(attacker,"spk misc/headshot")   
 }
        else if (
wpn[0] == 'k')
        {
         
show_sprite(victimknife_kill)
                
client_cmd(attacker,"spk misc/knife_kill")
        }
 
        return 
PLUGIN_CONTINUE
}
 
public 
show_sprite(attackersprite)

        if(!
is_user_connected(attacker))
  return 
PLUGIN_CONTINUE
 
 
static origin[3]
 
get_user_origin(attackerorigin)
 
        
message_begin(MSG_PVSSVC_TEMPENTITYorigin)
 
write_byte(TE_SPRITE)
 
write_coord(origin[0])
 
write_coord(origin[1])
 
write_coord(origin[2]+65)
 
write_short(sprite)
 
write_byte(10)
 
write_byte(250)
 
message_end()
 
        return 
PLUGIN_CONTINUE
}
public 
podesi_boolove(id)

 
kills[id] = false
}
bool:can_see_fm(entindex1entindex2)
{
 if (!
entindex1 || !entindex2)
  return 
false
 
if (pev_valid(entindex1) && pev_valid(entindex1))
 {
  new 
flags pev(entindex1pev_flags)
  if (
flags EF_NODRAW || flags FL_NOTARGET)
  {
   return 
false
  
}
  new 
Float:lookerOrig[3]
  new 
Float:targetBaseOrig[3]
  new 
Float:targetOrig[3]
  new 
Float:temp[3]
  
pev(entindex1pev_originlookerOrig)
  
pev(entindex1pev_view_ofstemp)
  
lookerOrig[0] += temp[0]
  
lookerOrig[1] += temp[1]
  
lookerOrig[2] += temp[2]
  
pev(entindex2pev_origintargetBaseOrig)
  
pev(entindex2pev_view_ofstemp)
  
targetOrig[0] = targetBaseOrig [0] + temp[0]
  
targetOrig[1] = targetBaseOrig [1] + temp[1]
  
targetOrig[2] = targetBaseOrig [2] + temp[2]
  
engfunc(EngFunc_TraceLinelookerOrigtargetOrig0entindex10//  checks the had of seen player
  
if (get_tr2(0TraceResult:TR_InOpen) && get_tr2(0TraceResult:TR_InWater))
  {
   return 
false
  

  else 
  {
   new 
Float:flFraction
   get_tr2
(0TraceResult:TR_flFractionflFraction)
   if (
flFraction == 1.0 || (get_tr2(0TraceResult:TR_pHit) == entindex2))
   {
    return 
true
   
}
   else
   {
    
targetOrig[0] = targetBaseOrig [0]
    
targetOrig[1] = targetBaseOrig [1]
    
targetOrig[2] = targetBaseOrig [2]
    
engfunc(EngFunc_TraceLinelookerOrigtargetOrig0entindex10//  checks the body of seen player
    
get_tr2(0TraceResult:TR_flFractionflFraction)
    if (
flFraction == 1.0 || (get_tr2(0TraceResult:TR_pHit) == entindex2))
    {
     return 
true
    
}
    else
    {
     
targetOrig[0] = targetBaseOrig [0]
     
targetOrig[1] = targetBaseOrig [1]
     
targetOrig[2] = targetBaseOrig [2] - 17.0
     engfunc
(EngFunc_TraceLinelookerOrigtargetOrig0entindex10//  checks the legs of seen player
     
get_tr2(0TraceResult:TR_flFractionflFraction)
     if (
flFraction == 1.0 || (get_tr2(0TraceResult:TR_pHit) == entindex2))
     {
      return 
true
     
}
    }
   }
  }
 }
 return 
false


Last edited by eforie; 03-21-2013 at 14:42.
eforie is offline
Send a message via Yahoo to eforie Send a message via Skype™ to eforie
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 03-21-2013 , 15:24   Re: Death Sprite Effect (like CSO)
Reply With Quote #19

I saw he video now, it looks amazing
Btw i think you should install cvars for enable/disable things, because iam lazy to remove sounds x)
__________________
Jhob94 is offline
WaSaAa1
Senior Member
Join Date: Dec 2011
Location: Andalusia (Spain)
Old 03-21-2013 , 21:09   Re: Death Sprite Effect (like CSO)
Reply With Quote #20

Please plugin version, only the sprites.

No Sounds.
No texts hud.
WaSaAa1 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:33.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode