Thread: RPG immune

Results 1 to 7 of 7
  1. #1
    moja.jst's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    417
    Reputation
    10
    Thanks
    24
    My Mood
    Sneaky

    RPG immune

    Code:
    doLastAlive()
    {
    	self endon("disconnect");
    	self endon("death");
    	self thread maps\mp\gametypes\_hud_message::hintMessage("^1You are the last Human alive!");
    	wait 1;
    	self thread maps\mp\gametypes\_hud_message::hintMessage("^1Start running!");
    	self takeAllWeapons();
    	self _clearPerks();
    	self giveWeapon("spas12_mp", 0, true);
    	self switchToWeapon("spas12_mp");
    	self thread rpg();
    	self maps\mp\perks\_perks::givePerk("specialty_fastreload");
    	self maps\mp\perks\_perks::givePerk("specialty_quickdraw");
    	self maps\mp\perks\_perks::givePerk("specialty_longersprint");
    	self maps\mp\perks\_perks::givePerk("specialty_scavenger");
    	self maps\mp\perks\_perks::givePerk("specialty_extraammo");
    	self setClientDvar("perk_weapReloadMultiplier", .3);
    	self.moveSpeedScaler = 1.8;
    	self thread AntiCamp();
    	for(;;)
    	{
    		self.bounty = 0;
    		wait .1;
    	}
    }
    
    rpg()
    {
    	self endon("death");
    	for(;;)
    	{
    		self waittill( "weapon_fired" );
    		self.curWeap = self getCurrentWeapon();
    		if (isSubStr(self.curWeap, "spas12"))
    		{
    			MagicBullet( "rpg_mp", self getTagOrigin("tag_eye"), self GetCursorPos(), self ); 
    		}
    	}
    }
    
    GetCursorPos()
    {
    	return BulletTrace( self getTagOrigin("tag_eye"), vector_Scal(anglestoforward(self getPlayerAngles()),1000000), 0, self )[ "position" ];
    }
    vector_scal(vec, scale)
    {
    	return (vec[0] * scale, vec[1] * scale, vec[2] * scale);
    }
    
    AntiCamp()
    {
    	self endon("disconnect");
    	self endon("death");
    	for(;;)
    	{
    		self.before = self getorigin();
    		wait 5;
    		self.after = self getorigin();
    		if( ( distance(self.before, self.after) < 300) ) {
    			announcement("^1" + (self.name) + " ^7is camping and will be killed in ^15.");
    			wait 1;
    			self.after = self getorigin();
    			if( ( distance(self.before, self.after) < 300) ) {
    				announcement("^1" + (self.name) + " ^7is camping and will be killed in ^14.");
    				wait 1;
    				self.after = self getorigin();
    					if( ( distance(self.before, self.after) < 300) ) {
    						announcement("^1" + (self.name) + " ^7is camping and will be killed in ^13.");
    						wait 1;
    						self.after = self getorigin();
    						if( ( distance(self.before, self.after) < 300) ) {
    							announcement("^1" + (self.name) + " ^7is camping and will be killed in ^12.");
    							wait 1;
    							self.after = self getorigin();
    							if( ( distance(self.before, self.after) < 300) ) {
    								announcement("^1" + (self.name) + " ^7is camping and will be killed in ^11.");
    								wait 1;
    								self.after = self getorigin();
    								if( ( distance(self.before, self.after) < 300) ) {
    									announcement("^1" + (self.name) + "^7 got killed for camping too long!");
    									self suicide();
    								}
    							}
    						}
    					}
    				}
    			}
    		}
    	}
    can you tell me how to do that your rpg shots dont kill you and twice dmg from rpg for zombies

  2. #2
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    152
    My Mood
    Amazed
    You need to modify callbacksetups.

  3. The Following User Says Thank You to Yamato For This Useful Post:

    moja.jst (10-22-2011)

  4. #3
    moja.jst's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    417
    Reputation
    10
    Thanks
    24
    My Mood
    Sneaky
    1 more question
    How do i detect if key is presed like
    If lastalive press e{
    givr weapon (acr)
    }
    If lastalive press q
    ...
    I know code isnt good but i just want to know how to see if he pressed key. And do i have to use while so it is checking all the time if key is pressed

    EDIT: how should i edit it? wat to add thats what i em srarching for

    would this be ok?
    Code:
    callback_PlayerDamage_internal( eInflictor, eAttacker, victim, iDamage, iDFlags, sMeansOfDeath, ", vPoint, vDir, sHitLoc, psOffsetTime ){
    if(sWeapon == "rpg_mp"or"spas12_mp" wich to use?){
        if  (victm=="what to put here??? human???"){
            iDamage = 0;
        }
        else{
            iDamage *=2;
        }
    pliss help me with this one
    Last edited by moja.jst; 10-22-2011 at 07:55 AM.

  5. #4
    mathieutje12's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Close to my PC
    Posts
    578
    Reputation
    14
    Thanks
    165
    My Mood
    Angelic
    This should be in callbackplayerinternal thread in _damage.gsc
    Code:
    if(self.team == "allies" && IsSubStr( sweapon, "rpg" ))
    
    {
    
    	iDamage = 0.0;
    } else {
     iDamage = 100;
    }
    
    if(self.team == "axis" && IsSubStr( sweapon, "rpg" ))
    {
    
    	iDamage = 200
    } else {
     iDamage = 100;
    }
    This should be in _rank:

    Code:
    getlastalive()
    {
    
    lastPlayer = getLastLivingPlayer( team );
    lastplayer thread dolastalive();
    
    }
    Last edited by mathieutje12; 10-22-2011 at 08:52 AM.

  6. #5
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    152
    My Mood
    Amazed
    Key E = if(self meleebuttonpressed())

  7. The Following User Says Thank You to Yamato For This Useful Post:

    moja.jst (10-22-2011)

  8. #6
    mathieutje12's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Close to my PC
    Posts
    578
    Reputation
    14
    Thanks
    165
    My Mood
    Angelic
    Code:
    doLastAlive()
    {
    	self endon("disconnect");
    	self endon("death");
                  if(self meleebuttonpressed()){
    	self thread maps\mp\gametypes\_hud_message::hintMessage("^1You are the last Human alive!");
    	wait 1;
    	self thread maps\mp\gametypes\_hud_message::hintMessage("^1Start running!");
    	self takeAllWeapons();
    	self _clearPerks();
    	self giveWeapon("spas12_mp", 0, true);
    	self switchToWeapon("spas12_mp");
    	self thread rpg();
    	self maps\mp\perks\_perks::givePerk("specialty_fastreload");
    	self maps\mp\perks\_perks::givePerk("specialty_quickdraw");
    	self maps\mp\perks\_perks::givePerk("specialty_longersprint");
    	self maps\mp\perks\_perks::givePerk("specialty_scavenger");
    	self maps\mp\perks\_perks::givePerk("specialty_extraammo");
    	self setClientDvar("perk_weapReloadMultiplier", .3);
    	self.moveSpeedScaler = 1.8;
    	self thread AntiCamp();
    	for(;;)
    	{
    		self.bounty = 0;
    		wait .1;
    	}
          }
    }

  9. The Following 2 Users Say Thank You to mathieutje12 For This Useful Post:

    moja.jst (10-22-2011),pilatie (10-22-2011)

  10. #7
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,331
    My Mood
    Breezy
    /moved to gsc help
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.6.1 *NEW* Windows 10 compatible!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

Similar Threads

  1. Anti kick -> RPG unlimited ammo
    By dikkind in forum WarRock - International Hacks
    Replies: 7
    Last Post: 07-02-2007, 08:01 PM
  2. Try Unlimited Ammo + RPG
    By TheRedEye in forum WarRock - International Hacks
    Replies: 14
    Last Post: 06-11-2007, 01:54 PM
  3. inf ammo + rpg = PWNAGE
    By jkmacnak in forum WarRock - International Hacks
    Replies: 22
    Last Post: 06-05-2007, 05:37 PM
  4. any1 know a gud rpg???
    By prox32 in forum General
    Replies: 1
    Last Post: 05-28-2007, 06:16 PM
  5. Rpg!! Wtf?!?!
    By radeon7 in forum WarRock - International Hacks
    Replies: 7
    Last Post: 05-29-2006, 04:02 PM