Page 3 of 7 FirstFirst 12345 ... LastLast
Results 31 to 45 of 102
  1. #31
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,976
    Reputation
    343
    Thanks
    4,320
    My Mood
    Cheeky
    Quote Originally Posted by BooYa View Post
    Nee ik heb alleen de guninfo waarden verandert, misschien komt het omdat ik ook waarden als reloadtime verandert heb. Ik zal het even testen

    EDIT: Het werkt nu dus het zal hier wel aan gelegen hebben. Ik kan alleen niet meer met dat pistool schieten
    De standaard waardes zitten in mijn eerste post, je kunt die ff copieren ^^
    Ah we-a blaze the fyah, make it bun dem!

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

    BooYa (10-13-2009)

  3. #32
    BooYa's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    hre
    Posts
    111
    Reputation
    10
    Thanks
    19
    Code:
    attackphysics(from, to);
    
    		hits.setsizenodelete(0);
    		raydamage(from, to, owner);
    		attackfx(from, to, 0);
    
    		gunwait = info.attackdelay;
    		mag--;
    
    		sendshoot(from, to);
    Ik heb dit gedeelte dus verandert in je onderstaande code en zodra ik probeer te schieten crasht het spel en krijg ik een error. Ik krijg dezelfde error met het mes
    Last edited by BooYa; 10-13-2009 at 11:19 AM.

  4. #33
    BooYa's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    hre
    Posts
    111
    Reputation
    10
    Thanks
    19
    Quote Originally Posted by Hell_Demon View Post
    De standaard waardes zitten in mijn eerste post, je kunt die ff copieren ^^
    Ja heb hem al aan het werken gekregen alleen pistool wil niet schieten. Had de HP van mijn speler ook verandert dus vermoed dat dat het probleem was

  5. #34
    lalakijilp's Avatar
    Join Date
    Jan 2008
    Gender
    male
    Posts
    310
    Reputation
    9
    Thanks
    53
    My Mood
    Blah
    ik zie nu al uit naar de herfstvakantie dan heb ik tijd en kan ik er tijd aan besteden

  6. #35
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,976
    Reputation
    343
    Thanks
    4,320
    My Mood
    Cheeky
    Quote Originally Posted by BooYa View Post
    Code:
    attackphysics(from, to);
    
    		hits.setsizenodelete(0);
    		raydamage(from, to, owner);
    		attackfx(from, to, 0);
    
    		gunwait = info.attackdelay;
    		mag--;
    
    		sendshoot(from, to);
    Ik heb dit gedeelte dus verandert in je onderstaande code en zodra ik probeer te schieten crasht het spel en krijg ik een error. Ik krijg dezelfde error met het mes
    dat gebeurd omdat er geen vijand is, ik was te lui om checks toe te voegen ^^

    if a mod could update:
    Code:
    float tdist=9999999.9; //max distance we want
    	int target=-1; // temporary target
    	vec newto; // where our new hit location is
    	loopv(players)
    	{
    		if(players[i]==NULL) continue; //if the pointer is not NULL
    		if(!isteam(player1->team, players[i]->team) && players[i] != player1 && players[i]->state == CS_ALIVE) // and the team isnt the same, its not pointing to our own player and the enemy is alive
    		{
    			if(from.distxy(players[i]->o)<tdist) // check if the distance is below the best distance
    			{
    				tdist=from.distxy(players[i]->o);// if it is save our new distance as best distance
    				target=i; // assign our target
    			}
    		}
    	}
    	newto = players[target]->o; // the new hit location is our enemys location
    	attackphysics(from, newto);// send the attack physics
    
    	hits.setsizenodelete(0);
    	raydamage(from, newto, owner); // apply the damage
    	attackfx(from, newto, 0); // apply the effects
    		
    	gunwait = info.attackdelay; // apply the gun wait time
    	mag--; // decrease our ammo
    
    	sendshoot(from, newto); // send our shot over to the server
    into
    Code:
    float tdist=9999999.9; //max distance we want
    	int target=-1; // temporary target
    	vec newto; // where our new hit location is
    	loopv(players)
    	{
    		if(players[i]==NULL) continue; //if the pointer is not NULL
    		if(!isteam(player1->team, players[i]->team) && players[i] != player1 && players[i]->state == CS_ALIVE) // and the team isnt the same, its not pointing to our own player and the enemy is alive
    		{
    			if(from.distxy(players[i]->o)<tdist) // check if the distance is below the best distance
    			{
    				tdist=from.distxy(players[i]->o);// if it is save our new distance as best distance
    				target=i; // assign our target
    			}
    		}
    	}
    	if(target != -1)
    	{
    		newto = players[target]->o; // the new hit location is our enemys location
    		attackphysics(from, newto);// send the attack physics
    
    		hits.setsizenodelete(0);
    		raydamage(from, newto, owner); // apply the damage
    		attackfx(from, newto, 0); // apply the effects
    		
    		gunwait = info.attackdelay; // apply the gun wait time
    		mag--; // decrease our ammo
    
    		sendshoot(from, newto); // send our shot over to the server
    	}
    	else
    	{
    		attackphysics(from, to);// send the attack physics
    
    		hits.setsizenodelete(0);
    		raydamage(from, to, owner); // apply the damage
    		attackfx(from, to, 0); // apply the effects
    		
    		gunwait = info.attackdelay; // apply the gun wait time
    		mag--; // decrease our ammo
    
    		sendshoot(from, to); // send our shot over to the server
    	}
    it would be much appreciated fixes a crash when shooting if there is no enemy
    Ah we-a blaze the fyah, make it bun dem!

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

    BooYa (10-13-2009)

  8. #36
    Matrix_NEO006's Avatar
    Join Date
    Feb 2008
    Gender
    male
    Posts
    240
    Reputation
    12
    Thanks
    33
    My Mood
    Lonely
    damnit how noob can i be it still doesnt work because i dont have VS 2008 SP1 im installing it right now it should work now
    tell everyone else to get SP1 if it doesnt come with the VS 2008 + get SDK 1.1

    my VS 2008 is pirated so i think thats why.

  9. #37
    [Jesuz]'s Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    56
    Reputation
    10
    Thanks
    8
    Umm ok so i did everything you said. But what should i build? like what type of project should i open? then build?

  10. #38
    BooYa's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    hre
    Posts
    111
    Reputation
    10
    Thanks
    19
    Quote Originally Posted by [Jesuz] View Post
    Umm ok so i did everything you said. But what should i build? like what type of project should i open? then build?
    source/vcpp/cube

  11. The Following User Says Thank You to BooYa For This Useful Post:

    Hell_Demon (10-14-2009)

  12. #39
    BooYa's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    hre
    Posts
    111
    Reputation
    10
    Thanks
    19
    Why06 u forgot to add his flag tutorial

    https://www.mpgh.net/forum/31-c-c/866...-flaghack.html

  13. The Following User Says Thank You to BooYa For This Useful Post:

    why06 (10-15-2009)

  14. #40
    why06's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    IBM
    Posts
    4,304
    Reputation
    170
    Thanks
    2,203
    My Mood
    Flirty
    Quote Originally Posted by BooYa View Post
    Why06 u forgot to add his flag tutorial

    https://www.mpgh.net/forum/31-c-c/866...-flaghack.html
    Oh opps! Thanks. I thought I was forgetting something...

    EDIT: There we go. I think that's all of them.
    Last edited by why06; 10-15-2009 at 07:46 AM.

    "Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."
    - Dwight D. Eisenhower

  15. #41
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,976
    Reputation
    343
    Thanks
    4,320
    My Mood
    Cheeky
    OMG! u haxxed mah account and forced me to post into this topic that now contains all of my codens
    Ah we-a blaze the fyah, make it bun dem!

  16. #42
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,976
    Reputation
    343
    Thanks
    4,320
    My Mood
    Cheeky
    Quote Originally Posted by bloodzknight View Post
    yo got a question man
    like wut do i do with the codes on this page
    You shove them up your ass, take a dump in the toilet and hope for a hax tree to grow.
    Ah we-a blaze the fyah, make it bun dem!

  17. The Following 3 Users Say Thank You to Hell_Demon For This Useful Post:

    falcino (10-19-2009),Lolland (10-17-2009),why06 (10-17-2009)

  18. #43
    LegendaryAbbo's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Posts
    5,243
    Reputation
    23
    Thanks
    546
    My Mood
    Relaxed
    Quote Originally Posted by Hell_Demon View Post
    You shove them up your ass, take a dump in the toilet and hope for a hax tree to grow.
    Will this work with all codes?

  19. #44
    imsocruel's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    Moaso
    Posts
    49
    Reputation
    10
    Thanks
    4
    My Mood
    Aggressive

    c++

    i need help with this, :S..i dont know where to start, pm me on reply in thread, or add my msn stallions39@hotmail.com thanks..

  20. #45
    t7ancients's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    New York
    Posts
    381
    Reputation
    28
    Thanks
    68
    My Mood
    Twisted
    I couldn't get assaultcube to compile, so then i remembered " hey, sauerbraten compiles just fine! ". I then went snifting through the sauerbraten src and found pretty much the same code. You can go into physics.cpp and change the gravity settings and the jump force or you can make it so you can walk up walls. Since sauerbraten's code is slightly different, I found the guninfo in game.cpp/.h. I'm assuming the "part" variable is the spread, but with them all set to 0 there are no changes in the game. Everything else works perfecting except spread though. The rate of fire, damage, range of weapons, etc. are all changed to crazy numbers. chainsaw snipe ftw? Anyway, thanks for this tut, you opened new doors for me.

Page 3 of 7 FirstFirst 12345 ... LastLast

Similar Threads

  1. [WEEKLY SHOWCASE] More [ASSAULTCUBE] Hack Tutorials
    By Retoxified in forum C++/C Programming
    Replies: 6
    Last Post: 04-25-2010, 04:48 PM
  2. Warrock Hack - Tutorial
    By Dave84311 in forum WarRock - International Hacks
    Replies: 667
    Last Post: 10-09-2007, 10:10 AM
  3. Hack Tutorial For Invicible Hack
    By $GHOST$ in forum WarRock - International Hacks
    Replies: 23
    Last Post: 02-20-2006, 03:32 PM
  4. Requesting: Hacking Tutorial
    By AthlaS in forum Hack Requests
    Replies: 1
    Last Post: 01-15-2006, 06:11 PM
  5. Gunz Hack - Tutorial
    By Dave84311 in forum General Game Hacking
    Replies: 12
    Last Post: 01-09-2006, 08:16 PM

Tags for this Thread