Raised This Month: $ Target: $400
 0% 

Avatar Mod - Air Attacks


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 09-05-2008 , 19:46   Re: Avatar Mod - Air Attacks
#4

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;
 }
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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