ItsMods

Full Version: WTF? FX trap
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hello) I'm new to MW3, but in some ways I understand Chom (c #)? I came across this thing here http://www.itsmods.com/forum/Thread-Prev...-FX.html:D, how so? Who can give me an example code? or tell us how it makes no? never seen anything like it!

Huh

Huh
This person has not released what he's showing in this video, however, you can probably create something like this yourself.
It's just showing message at some distance and playing fx
It uses so many entities wouldn't recommend doing it but it is really simple
you can explain to me how this makes no? I just can not imagine! HOW?
Huh
Huh
HuhSleepy
Stop smile spamming.
It's just some math and programming basics.
(02-22-2013, 12:16)SailorMoon Wrote: [ -> ]Stop smile spamming.
It's just some math and programming basics.
an example? Give me an example!
: Rolleyes:
Distance function
Code:
public static float Distance(float loc, float loc2)
        {
            return Math.Abs(loc - loc2);
        }

Code:
List<ServerClient> clients = new List<ServerClient>();

                clients = GetClients();

                if (clients != null) // there's must be MORE than 0 players
                {
                    foreach (ServerClient c in GetClients())
                    {

                        if (c.Other.isAlive == true &&
                            c.ConnectionState != ConnectionStates.MapLoading &&
                            c.ConnectionState != ConnectionStates.Connecting &&
                            c.ConnectionState != ConnectionStates.Zombie)
                        {

                            if ((Distance(c.OriginY, Y3) <= 100) && (Distance(c.OriginX, X3) <= 100) && Distance(c.OriginZ, Z3) <= 30)
                            {
                                  // play fx there

                            }
                            else
                            {
                            }
                        }
                    }

                }
            }

X3, Y3, Z3 are position data of point at map.

(02-22-2013, 12:20)Jone Calerone Wrote: [ -> ]
(02-22-2013, 12:16)SailorMoon Wrote: [ -> ]Stop smile spamming.
It's just some math and programming basics.
an example? Give me an example!
: Rolleyes:

Use 'please' next time.
inb4 'how i make this plugin?'
howI mwke the dll????
Rolleyes
Pages: 1 2