Newsgroups: rec.games.computer.quake.quake-c
Path: clanworld.com!news.webspan.net!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.mel.connect.com.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!matilda.vut.edu.au!tiger.vut.edu.au!s9708172
From: Butler Owen scm2211 <s9708172@tiger.vut.edu.au>
Subject: Re: Suicide Patch
In-Reply-To: <01bd5b60$b204f7e0$0b01a8c0@kato.TheRamp.net>
Content-Type: TEXT/PLAIN; charset=US-ASCII
Message-ID: <Pine.SOL.3.95.980402145539.2888A-100000@tiger.vut.edu.au>
To: Socko <jvaccari@theramp.net>
Sender: news@matilda.vut.edu.au
Organization: Victoria University of Technology
References: <01bd5b60$b204f7e0$0b01a8c0@kato.TheRamp.net>
Mime-Version: 1.0
Date: Thu, 2 Apr 1998 05:02:21 GMT
Lines: 41
Xref: clanworld.com rec.games.computer.quake.quake-c:5660

Hello, 

In the function that is called when you enter the kill command, I think
its called clientkill, or suicidecommand or something, and your right, its
in client.qc.  What you need to do is increment a counter everytime the
loser goes through the function, and then check if its over or equal to 3,
and if so, kick the dude.

so add somewhere in this function(the end maybe) 

self.light = self.light + 1;	// I used .light so I don't have to define
				// another field
if (self.light > 2)		// his time is up :)
{
    kick(self.netname);		// bye, bye
}

You can reuse the .light field, because unless youve changed id's code
lots, the player will never use that field, 

Hope that helped.

OB

On 29 Mar 1998, Socko wrote:

> I'm looking to make a patch that kicks a person from a server after typing
> the "kill" command 3 times.  I need this patch because of people who
> suicide under others name     which ruin there frag stats.. I think i found
> the suicde part in the client.qc and can get it to do something using a
> 'if' statement.  My only problem is that I can't find a command that will
> remove or kick them from the server.  If anyone knows anyway of doing this,
> let me know..
> 
> Thank you!  
> Also, please e-mail a copy if you could!
> 
> ADam
> 
> 

