Welcome, Guest
Username: Password: Remember me

TOPIC: stalker perk

stalker perk 2 years 2 months ago #223

  • mitsurugi
  • mitsurugi's Avatar
  • Offline
  • Moderator
  • Posts: 128
  • Thank you received: 99
  • Karma: 9
hello,
I would like use stalker perk from mw3 ( no movement speed penalty while aiming down the sights ) but I dont know where I can start. I tried in _fitness.gsc
monitorWalkWithoutADS()
{
	self endon("death");
	self endon("disconnect");
	level endon("game_ended");
	
	for (;;)
	{
		wait (0.05);
		// Check for the velocity of the player, stance, etc to see if the player is walking with no ADS
		if ( self getVelocity() != 0 && self getStance() == "stand" && self isOnGround() && !self.fcs["sprinting"] && !self playerAds() ) {
			playerIsWalking = true;
		} 
		
		else if ( self getVelocity() != 0 && self getStance() == "stand" && self isOnGround() && !self.fcs["sprinting"] && self playerAds() && self.specialty[2] == "specialty_stalker" ) {
			playerIsWalking = true;
		}
		
		else {
			playerIsWalking = false;
		}
		
		
		
		// Check if we need to update the status
		if ( self.fcs["walking"] != playerIsWalking ) {
			self.fcs["walking"] = playerIsWalking;
		}		
	}	
}

but it did not work
any ideas/advaces are welcome
The administrator has disabled public write access.

stalker perk 2 years 1 month ago #224

  • {OSG}Brodie
  • {OSG}Brodie's Avatar
  • Offline
  • Administrator
  • Posts: 448
  • Thank you received: 188
  • Karma: 14
not sure buddy Holy Moly might be the man to ask for this
The administrator has disabled public write access.

stalker perk 2 years 1 month ago #225

  • HolyMoly
  • HolyMoly's Avatar
  • Offline
  • Moderator
  • Posts: 44
  • Thank you received: 44
  • Karma: 8
monitorWalkWithoutADS()
{
	self endon("death");
	self endon("disconnect");
	level endon("game_ended");
	
	for (;;)
	{
		wait (0.05);
		// Check for the velocity of the player, stance, etc to see if the player is walking with no ADS
		if ( self getVelocity() != 0 && self getStance() == "stand" && self isOnGround() && !self.fcs["sprinting"] && !self playerAds() ) {
			playerIsWalking = true;

		} else {

			if( self.specialty[2] == "specialty_stalker" ) { 

                                playerIsWalking = false; // Only way to have false is with perk

                        } else {

                                playerIsWalking = true;
                        }

		}
		
		// Check if we need to update the status
		if ( self.fcs["walking"] != playerIsWalking ) {
			self.fcs["walking"] = playerIsWalking;
		}		
	}	
}

You must have a false return to allow the walk with ADS to not count against your movement speed.

I think this is what you want?
The administrator has disabled public write access.
The following user(s) said Thank You: {OSG}Brodie

stalker perk 2 years 1 month ago #226

  • mitsurugi
  • mitsurugi's Avatar
  • Offline
  • Moderator
  • Posts: 128
  • Thank you received: 99
  • Karma: 9
I tied but it did not work

I m not sure _fitness.gsc is the best place to start that

I did somethink else, Lightweight perk
The administrator has disabled public write access.

stalker perk 2 years 1 month ago #227

  • {OSG}Brodie
  • {OSG}Brodie's Avatar
  • Offline
  • Administrator
  • Posts: 448
  • Thank you received: 188
  • Karma: 14
nice
The administrator has disabled public write access.
Time to create page: 1.108 seconds
Powered by Kunena Forum