AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Avatar Mod - Air Attacks (https://forums.alliedmods.net/showthread.php?t=77105)

grimvh2 09-05-2008 16:34

Avatar Mod - Air Attacks
 
Well , by now most people know I am making an Avatar Mod .
But now I got this problem .

I need a way to create air attacks , but I dont know exactly a way how to do this . So I am seeking an easy way but also a good way to create an air attack . Ill look to all advise and maybe you can also show your idea with a small piece of code .

So lets do some Brain Storming here :D
Greetings .

Emp` 09-05-2008 19:34

Re: Avatar Mod - Air Attacks
 
For those of us that don't watch Avatar, can you give some examples of air attacks? Are people pushed around? What goes on?

wonsae 09-05-2008 19:39

Re: Avatar Mod - Air Attacks
 
Yeah that's what air attacks do in Avatar.

Emp` 09-05-2008 19:46

Re: Avatar Mod - Air Attacks
 
From PokeMod:
Code:

public Gust(id, skill, prop)
 {
        new gust = SkillLevel(id, skill) / GUST_FACTOR
        new Float:velocity[3], Float:Cvelocity[3]

        poke_sound(id, CHAN_VOICE, SND_JUMPLAND)

        velocity_by_aim(id, gust*GUST_VELOCITY, velocity)

        new players[MAX_PLAYERS], pnum, aid
        poke_get_players(players, pnum ,PLAYER_ALIVE|PLAYER_MORTAL)

        for(new i=0; i<pnum; i++){
                aid = players[i]
                if(fm_is_ent_visible(id, aid)){
                        pev(aid, pev_velocity, Cvelocity)
                        Cvelocity[0] += velocity[0]
                        Cvelocity[1] += velocity[1]
                        Cvelocity[2] += velocity[2]
                        set_pev(aid, pev_velocity ,Cvelocity)

                        skilldamage(aid, id, gust, skill)

                        poke_print(aid, print_center, "You were hit by a %s", SkillToName(skill) )
                        poke_sound(aid, CHAN_VOICE, SND_JUMPLAND)
                }
        }
        return SKILL_USED;
 }


grimvh2 09-06-2008 02:19

Re: Avatar Mod - Air Attacks
 
Hmm yes you got a point there , ill try to find a good episode wich start with air attacks cause explaining that ... I dunno xD .

Well I wasnt clear I think ...

I am trying to get the attack in game , so the visable part of the attack .
so things like when he gets hit , push him back hard , those can I do already .

I just dont know how I could make the air attack it self .

{PHILMAGROIN} 09-06-2008 02:33

Re: Avatar Mod - Air Attacks
 
i guess it would have to be a model huh? or a sprite?

grimvh2 09-06-2008 02:55

Re: Avatar Mod - Air Attacks
 
I dont think making a model ore sprite of somthing like that is almost not possible


All times are GMT -4. The time now is 03:15.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.