Raised This Month: $7 Target: $400
 1% 

Deathtype Effects


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   Exolent[jNr] (178)
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 07-31-2008 , 06:09   Deathtype Effects
Reply With Quote #1

Deathtype Effects
v1.0

Description: Effects for: headshot,knife and grenade kill. They're applied to victim.
  • headshot - explosion
  • knife - thunder
  • grenade - blood
There is a sound for every effect. (no download needed)

Credits: d3n14

Cvars:
hs_effect 1/0 - enable/disable headshot effect (default 1)
kn_effect 1/0 - enable/disable knife effect (default 1)
he_effect 1/0 - enable/disable hegrenade effect (default 1)

Attached Files
File Type: sma Get Plugin or Get Source (deathtype_effects.sma - 24386 views - 3.9 KB)
__________________


Last edited by anakin_cstrike; 07-15-2009 at 09:37.
anakin_cstrike is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-31-2008 , 06:14   Re: Deathtype Effects
Reply With Quote #2

Suggestions.


- read_data(3) <= cache the value.

- Use the define name for tempentity message, not the number.

- Extend the cvar to be able to choice what effect should be enabled/disabled.
__________________

Last edited by Arkshine; 07-31-2008 at 06:19.
Arkshine is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 07-31-2008 , 06:41   Re: Deathtype Effects
Reply With Quote #3

Quote:
Originally Posted by arkshine View Post
Suggestions.


- read_data(3) <= cache the value.

- Use the define name for tempentity message, not the number.

- Extend the cvar to be able to choice what effect should be enabled/disabled.
Ok...at hs, you mean :
Code:
if(read_data(3) <= 1))
?
__________________

anakin_cstrike is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-31-2008 , 06:42   Re: Deathtype Effects
Reply With Quote #4

read_data(3) is used severals times. So, cache the value one time like 'victim'.
__________________
Arkshine is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 07-31-2008 , 06:50   Re: Deathtype Effects
Reply With Quote #5

Quote:
Originally Posted by arkshine View Post
read_data(3) is used severals times. So, cache the value one time like 'victim'.
Done.
__________________

anakin_cstrike is offline
kevin14144
Member
Join Date: Jul 2007
Old 07-31-2008 , 06:55  
Reply With Quote #6

Nice Plugin

Death effect sound good !
kevin14144 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-31-2008 , 07:01   Re: Deathtype Effects
Reply With Quote #7

and for 'Use the define name for tempentity message, not the number.' ?

You seem to not understand.

eg : instead of '21', you should write 'TE_BEAMCYLINDER' . It's more readable. #define exists for this purpose, use it . ( message_const.inc )



EDIT : Thanks your comment/-k for this post ( don't know who ) : "Shut up you jackass" ; though I'm not sure to understand why.
__________________

Last edited by Arkshine; 07-31-2008 at 08:21.
Arkshine is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 07-31-2008 , 07:17   Re: Deathtype Effects
Reply With Quote #8

Ok, done !
__________________

anakin_cstrike is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-31-2008 , 07:25   Re: Deathtype Effects
Reply With Quote #9

You forget one.

0 = TE_BEAMPOINTS
__________________

Last edited by Arkshine; 07-31-2008 at 07:38.
Arkshine is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 07-31-2008 , 07:37   Re: Deathtype Effects
Reply With Quote #10

I'm not very good at sending this kind of messages.
__________________

anakin_cstrike is offline
Reply


Thread Tools
Display Modes

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 03:52.


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