Results 1 to 7 of 7
  1. #1
    KickerOfAsses's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    46
    Reputation
    10
    Thanks
    5
    My Mood
    Lurking

    [Solved]Modding FS's GunGame v2.61, 2 questions

    I've made a simple pistols-only gungame from Fallen Soul's GunGame v2.61, but I want to make a couple more changes I can't figure out.

    #1: Restrict ADS while prone
    I want to use this:
    Code:
    if ( self GetStance() == "prone" )
    {     
        self allowADS(false);
    }
    ...but where exactly should it go? Or is there a better way?

    #2: Restrict Flashbangs/Concussion Grenades/Frags/Semtex
    I was using takeallweapons, but it has the problem of restricting killstreaks. You have to die and get another killstreak before you can use the ones you earned previously.
    The next thing I tried was forcing smoke grenades and throwing knives, but I can't get that to work (probably not using the correct code). I tried...
    Code:
    self maps\mp\perks\_perks::givePerk( "smoke_grenade_mp" );
    self maps\mp\perks\_perks::givePerk( "throwingknife_mp" );
    ...on spawn, then in doGun(). Neither worked right; in both cases you received smoke and knife, but only after you expended your class' equipment. Using the above code with takeallweapons seems to set the equipment correctly, but it still messes with killstreaks.
    Last edited by Blubb1337; 02-13-2011 at 03:08 AM.

  2. #2
    KickerOfAsses's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    46
    Reputation
    10
    Thanks
    5
    My Mood
    Lurking
    Any help is appreciated....

  3. #3
    cacheat's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Spain,Aragon,Huesca
    Posts
    178
    Reputation
    10
    Thanks
    8
    My Mood
    Psychedelic
    Quote Originally Posted by KickerOfAsses View Post
    Any help is appreciated....
    people will help if they want, id like to help u but i just know about editing mods not adding codes=(
    "It doesn't take the most powerful nations on Earth to create the next global conflict. Just the will of a single man."
    -- Vladimir Makarov

    [IMG]https://i1236.photobucke*****m/albums/ff441/hiere1/key_art_how_i_met_your_mother.jpg[/IMG]











  4. #4
    edub18's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Germany
    Posts
    146
    Reputation
    10
    Thanks
    12
    My Mood
    Bored
    #1 So you want to disable aiming while prone? No problem:

    Code:
    doDisableAim()
    {
      self endon("death");
      self endon("disconnect");
      
      for(;;)
      {
        if(self GetStance() == "prone")
        {
          self allowADS(false);
        } else {
          self allowADS(true);
        }
        
        wait 0.05;
      }
    }
    And call it like this:
    Code:
    onPlayerSpawned()
    {
    	self endon("disconnect");
    
    	for(;;)
    	{
    		self waittill("spawned_player");
                    self thread doDisableAim();
    
       
    	}
    }

  5. #5
    KickerOfAsses's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    46
    Reputation
    10
    Thanks
    5
    My Mood
    Lurking
    Thanks, works perfectly! Didn't even think of making a thread for that...

  6. #6
    mathieutje12's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Close to my PC
    Posts
    578
    Reputation
    14
    Thanks
    166
    My Mood
    Angelic
    SMoKE:
    self maps\mp\perks\_perks::givePerk( "smoke_grenade_mp" );
    self setOffhandSecondaryClass("smoke");
    self setPerk( "smoke_grenade_mp" );
    TK:
    self thread maps\mp\perks\_perks::givePerk( "throwingknife_mp" );
    self setWeaponAmmoClip("throwingknife_mp", 1);

  7. #7
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    /marked as solved