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

KD Money - *UPDATE* v 0.5


Post New Thread Reply   
 
Thread Tools Display Modes
VEN
Veteran Member
Join Date: Jan 2005
Old 06-11-2006 , 12:36  
Reply With Quote #11

Quote:
there should be someway to block it
Memory hacking.
VEN is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 06-11-2006 , 13:30  
Reply With Quote #12

Wait I'm confused...So this gives the guys that are doing good more money?
I think it should be flip-flopped.

Player A kills Player B
Player B has KD ratio of 2 , cvar is 1000
Player A gets 2000 because he killed someone with a good KD ratio.

If that is what this does then fix your first post. If not this is my suggestion.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
VEN
Veteran Member
Join Date: Jan 2005
Old 06-11-2006 , 14:00  
Reply With Quote #13

I agree, using victim K/D would made more sense.


Doombringer, you have some problems here.

1. Do not use get_user_deaths, use cs_get_user_deaths
2. Do not retrieve deaths twice, store it in variable
3. Do not use id, it's undefined, use Killer variable.

EDIT:

4. If for example K=1, D=0 you'll get division by zero
5. Unfair if for example (KD1: 10/0=0) < (KD2: 10/9=1.1)
VEN is offline
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 06-11-2006 , 15:51  
Reply With Quote #14

  1. fixed
  2. fixed
  3. fixed

i updated it so it uses the victim KD Ratio now ;)

EDIT: maybe add a cvar to choose what KD Ratio to use?
EDIT2: could someone plz test this whit me on my server? PM me if you want
Deviance is offline
Throstur
Senior Member
Join Date: Nov 2004
Location: Iceland
Old 06-12-2006 , 12:09  
Reply With Quote #15

not sure if this works, but this is the principle how to evade the 0 deaths problem
Code:
if(cs_get_user_deaths = 0)     cs_set_user_deaths(id, 1)

probably used id's in wrong place and all the rest of it but basically you're going to want to add that right at the end of the D calculation for KD.

You'd also do the same thing for kills, and in that case maybe you would give $100 as a default kill because getting 0 for a frag is just idiocy.
Throstur is offline
Send a message via AIM to Throstur Send a message via MSN to Throstur
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 06-13-2006 , 18:12  
Reply With Quote #16

I forgot that i changed the KD Ratio use
Deviance is offline
Throstur
Senior Member
Join Date: Nov 2004
Location: Iceland
Old 06-13-2006 , 18:24  
Reply With Quote #17

did you not say you used the victims KD ratio now? if you kill a hacker with 25 - 0 you should get money for introducing him to the canvas...
Throstur is offline
Send a message via AIM to Throstur Send a message via MSN to Throstur
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 06-13-2006 , 18:25  
Reply With Quote #18

Updated xD
  • Added a check to see if user is usin' cs( or else the plugin 'locks up')
  • Now the plugin give's the default reward( of 300 $ ), if the KD Ratio is zero

still waiting for beta-testers, not too late yet!

btw, if you like this plugin, plz give some feedback! ;)

thx!
Deviance is offline
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 06-13-2006 , 18:26  
Reply With Quote #19

Quote:
Originally Posted by Throstur
did you not say you used the victims KD ratio now? if you kill a hacker with 25 - 0 you should get money for introducing him to the canvas...
oh yeah, lol i forgot. Sry haven't got some sleep yet, jeez

but anyway's, no idea of mixing whit K or D

and now you get the default 300 reward if their K D ratio is zero ;)
Deviance is offline
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 06-13-2006 , 18:31  
Reply With Quote #20

idea's for next release
  • Make custom message( to killer of how much you get )
  • Cvar of choosing what KD Ratio to use( Victim or yourself )
  • make message work whit HUD
  • ... and more

have ideas, critism, suggestion's or something else your thinking about? post or PM me
Deviance 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 20:14.


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