Deadly wrote: |
EVENT_TakeHit with.. stuff like weapon = gun or bomb... then it wouldnt be too hard |
Code: Show/Hide case EVENT_Die:
{ Player *p = (Player*)event.p[0]; if (h->Me) h->postRR(generateDeath(p->ident, h->Me->bounty)); } |
50% Packetloss wrote: | |
deadly, remember that you dont program.
1. The function is tell(makeDeath(Player*)); so you have to pass it a pointer to the player that you want the bot to die to 2. Inorder for a bot to take damage (legitimatly) a physics engine would need to be built into the bot. That is a little outside the bounds of what a core should be doing. 3. There are many cores; the top 3 are TwCore, MervBot, and Powerbot. But many people have contributed to core designing, including Plody and Kewlair. Now lets assume that you actually knew the name of that function and did tell(makeDeath(0));//aka passing the function a NULL pointer Lets take a look at the core's code
yes, you have successfully crashed the bot, the core doesnt hold your hand so by passing a NULL pointer, when p->ident is done the core will either crash or throw a nasty exception. When will there be enough evidence for you to believe that you should not program, or even attempt to help people with thier coding problems? Your "learning how to program is a waste of my time" excuse is unreasonable compared to how much time you waste trying to help people on this forum. Deadly, I can sum your entire existance into one word. Idiot. I strongly suggest that everyone ignore his posts on the mervbot forum unless he is asking for help. Maybe im taking all this too seriously, but i consider programming a serious matter, especially when people are being directed to do a poor job of it. Learn to program or GTFO. |