Results 1 to 7 of 7

Thread: Cod2 Gravitygun

  1. #1
    Private
    Join Date
    Nov 2015
    Posts
    45
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Cod2 Gravitygun

    Hello! Not up my character. Help please
    Code:
    main()
    {
    	thread pickup();
    }
    
    pickup()
    {
    	self endon("disconnect");
    	self endon("killed_player");
    	self endon("spawned_player");
    	oldorg=self.origin;
    	pickup=0;
    	elet=200;
    	dobas=100;
    	ero=20;
    	varakozas=0;
    
    	for(;;)
    	{
    		if(!self isonground())
    		{
    			if(self attackbuttonpressed() && self.pers["weapon"] == "an_94_silencer_mp")
    			{
    				if(dobas>0)
    				{
    					ero=20;
    					if(oldorg==self.origin)
    						vDir=(0,0,1);
    					else
    					{
    						vDir=vectornormalize(self.origin-oldorg);
    						vDir=vectornormalize((vDir[0],vDir[1],10));
    					}
    					trace=bullettrace(self.origin,self.origin-(0,0,elet),false,undefined);
    					damage=int(ero-(ero*trace["fraction"]));
    					self.health+=damage;
    					self finishPlayerDamage(self,self,damage,0,"MOD_UNKNOWN","panzerschreck_mp",self.origin,vDir,"none",0);
    					varakozas=0;
    					pickup=1;
    					dobas--;
    				}
    				else if(pickup==1 && dobas==0)
    				{
    					varakozas++;
    					dobas++;
    					ero++;
    				}
    			}
    		}
    		oldorg=self.origin;
    		wait 0.05;
    	}
    }

  2. The Following User Says Thank You to pekszon For This Useful Post:

    kubislav23 (30th July 2017)

  3. #2
    Private milepunta's Avatar
    Join Date
    Jan 2014
    Location
    Croatia, Pula
    Posts
    27
    Thanks
    14
    Thanked 26 Times in 11 Posts
    Try to increase ero=20; to higher number like 200 or 2000
    As you once said I'm nothing but a monster!

  4. #3
    Private
    Join Date
    Nov 2015
    Posts
    45
    Thanks
    0
    Thanked 7 Times in 7 Posts
    not upping my character. Milepunta you test script and the good script send me

  5. The Following User Says Thank You to pekszon For This Useful Post:

    kubislav23 (30th July 2017)

  6. #4
    Corporal voron00's Avatar
    Join Date
    Nov 2014
    Posts
    248
    Thanks
    64
    Thanked 216 Times in 116 Posts
    Click image for larger version. 

Name:	1599e06bd7b11b9d1e3d414c4cfb97bd3ad4ed044ac06d4ec5625cf4d0d224ec.jpg 
Views:	51 
Size:	62.8 KB 
ID:	1352
    sudo apt-get rekt

  7. #5
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    https://killtube.org/showthread.php?...sking-for-help

    And for the boneheaded types of people, here's the image from that thread:

    Attachment 571

    You have 1) failed to properly, in correct english, describe your problem.
    You have 2) not enabled developer (is my guess)
    You have 3) used self, and not ensured that you are using it correctly. You have furthermore, not posted how you call your functions properly
    You have 4) not tried any fixes. Furthermore, you have not added any debugging to your code
    You have 5) skipped over steps 1 to 4 and posted on this forum.

    Also, read this: https://killtube.org/showthread.php?...ead-this-first!

    It contains hungarian translations also, so you would be able to understand the stuff that's in there. You're basically being very annoying.
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  8. #6
    Private
    Join Date
    Nov 2015
    Posts
    45
    Thanks
    0
    Thanked 7 Times in 7 Posts
    ok. you no help. end topic.

  9. The Following User Says Thank You to pekszon For This Useful Post:

    kubislav23 (30th July 2017)

  10. #7
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Quote Originally Posted by pekszon View Post
    ok. you no help. end topic.
    It's not helping when you want

    Quote Originally Posted by pekszon View Post
    Milepunta you test script and the good script send me
    That's called "doing it for you".
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •