AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Deathtype Effects (https://forums.alliedmods.net/showthread.php?t=75142)

anakin_cstrike 07-31-2008 06:09

Deathtype Effects
 
1 Attachment(s)
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)


Arkshine 07-31-2008 06:14

Re: Deathtype Effects
 
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.

anakin_cstrike 07-31-2008 06:41

Re: Deathtype Effects
 
Quote:

Originally Posted by arkshine (Post 662157)
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))
?

Arkshine 07-31-2008 06:42

Re: Deathtype Effects
 
read_data(3) is used severals times. So, cache the value one time like 'victim'.

anakin_cstrike 07-31-2008 06:50

Re: Deathtype Effects
 
Quote:

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

Done.

kevin14144 07-31-2008 06:55

Nice Plugin

Death effect sound good !

Arkshine 07-31-2008 07:01

Re: Deathtype Effects
 
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 :P. ( 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. :)

anakin_cstrike 07-31-2008 07:17

Re: Deathtype Effects
 
Ok, done !

Arkshine 07-31-2008 07:25

Re: Deathtype Effects
 
You forget one.

0 = TE_BEAMPOINTS

anakin_cstrike 07-31-2008 07:37

Re: Deathtype Effects
 
I'm not very good at sending this kind of messages.


All times are GMT -4. The time now is 22:42.

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