Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Member
    Join Date
    Sep 2011
    Posts
    60
    Points
    103
         User Info     Contact     Gamer ID
    Join Date
    Sep 2011
    Posts
    60
    Points
    103

    Default [Black Ops] Auto Delete Tomahawks and Ballistic Knife Blades

    Well I just made this and figured I might as well release it. It was actually a lot harder than it looks, I had to dig through a ton of .gsc files before I found what I was looking for.

    This is mainly useful for preventing g-spawn errors when using unlimited ammo, but can also be used if you just don't want these to be picked up.

    Auto Delete Tomahawks - enable by putting "self thread autoDeleteTomahawks();" in onPlayerSpawned().
    Code:
    autoDeleteTomahawks()
    {
    	self endon("death");
    
    	for(;;)
    	{
    		self waittill( "grenade_fire", tomahawk );
    		tomahawk waittill( "stationary" );
    		tomahawk delete();
    	}
    }
    NOTE: Above script works for all grenades.
    For it to work with tomahawks only, try:

    Code:
    autoDeleteTomahawks()
    {
    	self endon("death");
    
    	for(;;)
    	{
    		self waittill( "grenade_fire", tomahawk, grenadeName );
    		if( grenadeName == "hatchet_mp" )
    		{
    			tomahawk waittill( "stationary" );
    			tomahawk delete();
    		}
    	}
    }
    Auto Delete Ballistic Knife Blades - enable by putting "self thread autoDeleteKnives();" in onPlayerSpawned().
    Code:
    autoDeleteKnives()
    {
    	self endon("death");
    
    	for(;;)
    	{
    		self waittill( "ballistic_knife_stationary", knifeent );
    		knifeent delete();
    	}
    }
    There ya go! Enjoy.

    0 Not allowed! Not allowed!

  2. #2
    Banned
    Join Date
    Sep 2011
    Location
    your moms fucklist
    Posts
    127
    Points
    115
         User Info     Contact     Gamer ID
    Join Date
    Sep 2011
    Location
    your moms fucklist
    Posts
    127
    Points
    115

    Default

    nice mod although im not going to use it lol i tried it and it works tho lol

    0 Not allowed! Not allowed!

  3. #3
    Member
    Join Date
    Sep 2011
    Posts
    60
    Points
    103
         User Info     Contact     Gamer ID
    Join Date
    Sep 2011
    Posts
    60
    Points
    103

    Default

    Quote Originally Posted by GriZz View Post
    nice mod although im not going to use it lol i tried it and it works tho lol
    Did you try the revised version of tomahawk only? The one with the if statement?

    0 Not allowed! Not allowed!

  4. #4
    Member Tech~Tac's Avatar
    Join Date
    Jun 2011
    Location
    East St.Louis
    Posts
    155
    Points
    273
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Location
    East St.Louis
    Posts
    155
    Points
    273
    Gamer IDs

    Gamertag: CarribouL0U

    Contact info:

    Youtube Channel: http://www.youtube.com/TechTac9

    Default

    looks good, that would be helpful, cuz stupid noobs spam tomahawks all the time -_- Thanks dude, good work

    0 Not allowed! Not allowed!

  5. #5
    Wii Modder
    I AM BEAST
    JellyInjector's Avatar
    Join Date
    Apr 2011
    Posts
    598
    Points
    1,088
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Posts
    598
    Points
    1,088

    Default

    dang it... i dont feel so special anymore... now everyone else knows... lol... also, with that auto deleting loop, if you throw another tomahawk before the last one is stationary it wont delete it since its still waiting for the other one to be stationary...

    0 Not allowed! Not allowed!

  6. #6
    just 'round the corner PoptartHunter's Avatar
    Join Date
    May 2011
    Posts
    4,588
    Points
    8,731
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Posts
    4,588
    Points
    8,731

    Contact info:

    Youtube Channel: http://www.youtube.com/PoptartHunterCL

    Default

    what .gsc did you find it in?

    0 Not allowed! Not allowed!

  7. #7
    Member
    Join Date
    Sep 2011
    Posts
    60
    Points
    103
         User Info     Contact     Gamer ID
    Join Date
    Sep 2011
    Posts
    60
    Points
    103

    Default

    Quote Originally Posted by PoptartHunter View Post
    what .gsc did you find it in?
    I didn't actually find the script itself in a .gsc. I had to look through .gscs in order to see what happens when a ballistic knife gets dropped. The tomahawk one wasn't hard at all.

    Quote Originally Posted by JellyInjector View Post
    dang it... i dont feel so special anymore... now everyone else knows... lol... also, with that auto deleting loop, if you throw another tomahawk before the last one is stationary it wont delete it since its still waiting for the other one to be stationary...
    If you didn't release it you didn't make it. I could maybe see somebody making the tomahawk one, but there is no way in hell you made the one for the ballistic knife. You may be right about the loop, but it could be fixed by simply not giving them another tomahawk until the loop ends. Same with the knife.

    0 Not allowed! Not allowed!

  8. #8
    Wii Modder
    I AM BEAST
    JellyInjector's Avatar
    Join Date
    Apr 2011
    Posts
    598
    Points
    1,088
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Posts
    598
    Points
    1,088

    Default

    Quote Originally Posted by MWisBest View Post
    I didn't actually find the script itself in a .gsc. I had to look through .gscs in order to see what happens when a ballistic knife gets dropped. The tomahawk one wasn't hard at all.



    If you didn't release it you didn't make it. I could maybe see somebody making the tomahawk one, but there is no way in hell you made the one for the ballistic knife. You may be right about the loop, but it could be fixed by simply not giving them another tomahawk until the loop ends. Same with the knife.
    Yes i did make it, but i didnt release it cuz i didnt feel like it was that big of a deal, i dont think someone needs to take credit for a waittill that was already in the game... you can see that i actually used both of those things in my rtd v4 when i release it, and i had them in awhile ago

    0 Not allowed! Not allowed!

  9. #9
    Member
    Join Date
    Sep 2011
    Posts
    60
    Points
    103
         User Info     Contact     Gamer ID
    Join Date
    Sep 2011
    Posts
    60
    Points
    103

    Default

    There was no waittill built in to the game for the ballistic knife. It is a notify. Duh. Without a notify a waittill is nothing, and had you made this you would have known that. Any good scripter should know that. You must be jealous of my script or something. Mckelle is always trying to put down my stuff on maniiacs too. xD

    The tomahawk fix should be up today. It'll take up a little more space but it'll be worth it.

    And you can't say that it is in your script before I release this if you haven't even released it. People always try to take credit for my shit, whether it be codes or scripts.

    0 Not allowed! Not allowed!
    Last edited by MWisBest; 09-14-2011 at 10:04 AM.

  10. #10
    Evolved Modder
    Living Liek Larry
    tony's Avatar
    Join Date
    May 2011
    Location
    Listen, strange women lyin' in ponds distributin' swords is no basis for a system of government.
    Posts
    6,305
    Points
    10,694
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Listen, strange women lyin' in ponds distributin' swords is no basis for a system of government.
    Posts
    6,305
    Points
    10,694
    Gamer IDs

    PSN ID: L33T_T0ny Steam ID: ToNy Wii Code: L33T_T0ny

    Default

    cant wait for the fix and

    0 Not allowed! Not allowed!

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -10. The time now is 07:01 AM.
Powered by vBulletin®
Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.