Home AgeRage.net Forum Cheats News Hosting Shop About Links


Links
shop

download

facebook
Go Back   AgeRage.net Forum > ..::Cheating Area::.. > Other FPS Games > Raven Shield


Thread: [uscript help] suicide bot?
Raven Shield Kill the terrorists and save the world! RvS related stuff goes here!

Reply

 
LinkBack Thread Tools


  #1 (permalink)  
Join Date: 22 Aug 2008
Location: Earth
Posts: 13
reggiet's Avatar
Old 22-08-2008, 19:18
Recruited Rager
[uscript help] suicide bot?

Quote:
Originally Posted by kizzamp View Post
//add the vars
var config bool bsuicider;
var config byte suiciding;
var r6pawn r6pawn;

//add this to postrender
if(bsuicider)
{
r6pawn.ServerSuicidePawn(suiciding);
}
exec function xsuicide (byte b)
{
suiciding = b;Msg("suicide = " $ string(suiciding));
}
exec function xsuicider ()
{
bsuicider = !bsuicider;
}
hey i cant seem to get this to work. when compiling i get an error that functions cant be in post-render ... makes sense, except when i put the exec function anywhere else, it compiles but wont run in game. typing "xsuicide 1" into console gets me an unrecognized command. has anyone gotten this to work?
Reply With Quote

AgeRage.net Shop - Buy your valid CD-Keys

  #2 (permalink)  
Join Date: 22 Aug 2008
Location: Earth
Posts: 13
reggiet's Avatar
Old 22-08-2008, 19:21
Recruited Rager
oh and the line "Msg("suicide = " $ string(suiciding));" gives me an error when compiling, a "bad command or expression". to make it compile ive deleted it, cause i dont think its essential. am i correct about this?
Reply With Quote
  #3 (permalink)  
Join Date: 22 Aug 2008
Location: Earth
Posts: 13
reggiet's Avatar
Old 22-08-2008, 19:30
Recruited Rager
ok if i understand the code right, the only essential line for this is "r6pawn.ServerSuicidePawn(suiciding);" the rest is all just toggling on and off through the console. ive put this line in my postrender, and used a keyevent to toggle it, but it has no effect in game ... compiles nicely though.

EDIT: did some searching in the source, in r6engine.r6pawn, found the serversuicidepawn function, but cant make heads or tails of it ... still learning uscript, can anyone figure this out?

PHP Code:
//------------------------------------------------------------------
// ServerSuicidePawn: for debugging
//  
//------------------------------------------------------------------
function ServerSuicidePawn(BYTE bSuicidedType)
{
    if ( 
InGodMode() )
        return;

    
#ifdefDEBUG if ( bShowLog ) logX( "ServerSuicidePawn"); #endif
    
m_bSuicideType bSuicidedType;
    
velocity vect(0,0,0);
    
acceleration vect(0,0,0);
    
m_fFallingHeight Location.1000;
    
Landedvect(0,0,0) );


Last edited by reggiet; 22-08-2008 at 19:34..
Reply With Quote
  #4 (permalink)  
Join Date: 22 Aug 2008
Location: Earth
Posts: 13
reggiet's Avatar
Old 25-08-2008, 06:21
Recruited Rager
alright ive realized that my hooking method doesnt give me enough access to do exec functions.. ive changed the hook, exec functions now work. but the problem is, the ServerSuicidePawn function doesnt seem to work. the command doesnt return an error or anything, but it doesnt do anything.
Reply With Quote
  #5 (permalink)  
Join Date: 22 Aug 2008
Location: Earth
Posts: 13
reggiet's Avatar
Old 25-08-2008, 07:09
Recruited Rager
GOT IT!

for those who are interested in doing the same thing, heres what i did. instead of doing the bool switch, just make an exec function that looks like this:

PHP Code:
exec function xsuicide (byte SuicideType)
{
    
R6Pawn(Me).ServerSuicidePawn(SuicideType);

All credit for this fix goes to GloGG.
Reply With Quote
  #6 (permalink)  
Join Date: 19 Feb 2009
Location: AgeRage.net Cosmos
Posts: 10
crackshot's Avatar
Old 23-02-2009, 17:11
Recruited Rager
alright thanks man
Reply With Quote
  #7 (permalink)  
Join Date: 02 Jun 2008
Location: AgeRage.net Cosmos
Posts: 4
nines9's Avatar
Old 04-04-2009, 17:41
nines9 nines9 is offline
Recruited Rager
Hello reggiet, it seems as if only you are still active of those who were into hacking RavenShield. I know it's old but may I ask you what kind of software you used to do all the coding? Do you use hard stuff like C# or is there an easy to use program? =)
Reply With Quote
  #8 (permalink)  
Join Date: 22 Aug 2008
Location: Earth
Posts: 13
reggiet's Avatar
Old 16-04-2009, 02:40
Recruited Rager
Quote:
Originally Posted by nines9 View Post
Hello reggiet, it seems as if only you are still active of those who were into hacking RavenShield. I know it's old but may I ask you what kind of software you used to do all the coding? Do you use hard stuff like C# or is there an easy to use program? =)
I use notepad to write the code, then the RavenShield SDK to compile it to a *.u package. But I've moved to writing server-side mods instead of hacks for the last few months. Same method, a LOT more complicated code.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Uscript]special suicide kizzamp Raven Shield 1 03-03-2006 15:48


All times are GMT +1. The time now is 05:51.

Latest Threads

About AgeRage Forum

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
AgeRage.net - 'Feeding Your Cheating Obsession'
Page generated in 0.75785 seconds with 13 queries