[Include] Meteor system - A source based on scripting "meteors"! - (Recommended mostly for RP, and TDM servers)
#21

I really don't know what your thinking with this system but the design is terrible it should look something more like this.

pawn Код:
#define             MAX_METEORS         101

stock CreateMeteor(id,Float:X,Float:Y,Float:Z)
{
    for(new i = 0; i < MAX_METEORS; i++)
    {
        if(!MDat_@d_@a[i][Created])
        {
            MDat_@d_@a[i][ID] = id;
            MDat_@d_@a[i][x]  = X;
            MDat_@d_@a[i][y]  = Y;
            MDat_@d_@a[i][z]  = Z;
            MDat_@d_@a[i][Created] = 1;
            MDat_@d_@a[i][Check] = CreateObject(1303, X, Y, Z, 0,0,0);
            MDat_@d_@a[i][mBit_1] = CreateObject(18690, 0,0,-100,0,0,0);
            MDat_@d_@a[i][mBit_2] = CreateObject(2780, 0,0,-100,0,0,0,500.0);
            AttachObjectToObject(MDat_@d_@a[i][mBit_1], MDat_@d_@a[i][Check],0,0,0,0,0,0);
            AttachObjectToObject(MDat_@d_@a[i][mBit_2], MDat_@d_@a[i][Check],0,0,0,0,0,0);
            printf("METEOR CREATED - ID: %d", id);
            // Return the index
            return i;
        }
    }
    printf("ERROR: Tried to create too many metors");
    return 0;
}

stock DestroyMeteor(index)
{
    if(MDat_@d_@a[index][Created])
    {
        DestroyObject(MDat_@d_@a[index][Check]);
        DestroyObject(MDat_@d_@a[index][mBit_1]);
        DestroyObject(MDat_@d_@a[index][mBit_2]);
        MDat_@d_@a[index][Created] = 0;
        return 1;
    }

    return 0;
}
Reply
#22

Quote:
Originally Posted by ACI
Посмотреть сообщение
What the heck? Those are asteroids! Why are you obsessive about real-life and the game? The player CAN edit the source to meet his personal needs! If no one wants explosions to be set, he can only use:

pawn Код:
MeteorFall(id, Float:toX, Float:toY, Float:toZ, Float:Speed); //Leaving the ExplosionSwitch
Edit: Using the default object can be considered as a "Hoba meteor" or smaller. There are many small meteorites in real life too.
Then don't call it Meteor System, but Asteroids System, wise man. Don't feel attacked right away, even though you know you are wrong.
Reply
#23

Quote:
Originally Posted by Kindred
Посмотреть сообщение
You have any, any or any idea how huge meteorites are in real-life?
clearly you don't.

Quote:
Originally Posted by Kindred
Посмотреть сообщение
Then don't call it Meteor System, but Asteroids System, wise man. Don't feel attacked right away, even though you know you are wrong.
The name meteor system is actually right. This is what wikipedia says about a meteor:
Quote:

A meteoroid is a small rocky or metallic body travelling through space. Meteoroids are significantly smaller than asteroids, and range in size from small grains to 1 meter-wide objects.

Which is exactly the size of the objects in this include.

If you are gonna bug people with irrelevant bullshit, check your facts first.
Reply
#24

Its fine with the thing I've written. I dont need yours.

Edit: Why are you judging my code? Why cant people like you with high +REP control yourself? I am still looking on improving the code. And it will be better than your thing. Your having the worst thing here not me.
Reply
#25

Quote:
Originally Posted by ACI
Посмотреть сообщение
Its fine with the thing I've written. I dont need yours.

Edit: Why are you judging my code? Why cant people like you with high +REP control yourself? I am still looking on improving the code. And it will be better than your thing. Your having the worst thing here not me.
If you can't take criticism, don't release stuff on here...
Reply
#26

Dude I dont want to do that but I dont like someone judging my code in a bad way. Please stop harassing me right now.

Edit: Added a demo example, more complex examples will be added afterwords
Reply
#27

Come on now dude, I'm just pointing out the flaws from experience you have a lot to learn about dynamic design I never said the idea was not good just that the design is terrible. Touting it's alpha or beta or whatever does no justice to the end product when you have fundamental design flaws. It's not what people think is good which you need to work on but what people think is bad learn to take some criticism it will go a long way with improving the quality of your overall work.
Reply
#28

Quote:
Originally Posted by Hiddos
Посмотреть сообщение
If you're going to try to make it realistic, why not add atmospheric entry effects and atmospheric drag as well?
Haha, that would be cool
Quote:
Originally Posted by ACI
Посмотреть сообщение
@ wups - Thanks for advising but this was meant to look like this:

https://www.youtube.com/watch?v=dpmXyJrs7iU

@ Hiddos - Thanks for advising, will look onto future versions.

@ Don_Cage - Thank you

Updated the release to v0.2 - added more features.
Yeah, it's a curved path unlike the one in your script.
Reply
#29

Quote:
Originally Posted by Kindred
Посмотреть сообщение
You have any, any or any idea how huge meteorites are in real-life? And since when do meteorites cause explosions when they land on the earth?
No need to be an asshole.
Reply
#30

Quote:
Originally Posted by Venturas3
Посмотреть сообщение
No need to be an asshole.
No need to start a war here - or else don't post things like that on my topic, please. He has been harassed a lot.

O-T: Thanks for 2,000 views people
Reply
#31

@ Rock - I will look into that. Thanks for your help
@ WantedBot - I made this source to serve the users and give them comfort in scripting. Not releasing this would be just a problem for average scripters to write lines of code. Anyway if you are experiencing a problem with it then you can PM me regarding this.
@ Ballu Miaa -
Quote:

It is not that challenging

Here goes my credit for your knowledge from me:
PHP код:
Credit[Ballu_Miaa][xpert]++; 
Reply
#32

Awesome thought and really awesome work ,

Mind blowing! 10/10
Reply
#33

Thanks vTc
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)