PDA

View Full Version : Hero: Cyclone


K-OS
12-19-2005, 16:32
Cyclone

http://www.dragonhero.com/graphics/marvel2/cyclone.jpg

Description
You become a cyclone and you sux.

You pull players nearby towards you, then shoot them up into the sky.
With some cool tornado effects.

Made with some help from Gorlag/Batman and examples from sh_unclesam by AssKicR / vittu / Eric Lidman.

shconfig.cfg CVARS

cyclone_level 9
cyclone_cooldown 60 // Time in seconds the player must wait before he can use the power again
cyclone_range 1000 // Size of the cyclone
cyclone_force 800 // Power of the cyclone
cyclone_time 100 // Time in 1/10th of a second (10 sec now)
cyclone_playersonly 1 // The cyclone only picks up players if this is set to 1,
// If set to 0 the cyclone will pick up all entities
// ( WARNING VERY HEAVY FOR YOUR CPU AND I-NET IF THE MAP CONTAINTS MANY ENTITIES)


I like this hero :D
Cool to see ppl fly up into the sky and drop death a couple of meters further.


UPDATE::
- Renamed to cyclone because storm was already taken

- Added cooldown timer
- Removed unnecesary code
- Added CVAR force
- Improved tornado physics
- Players now swirl around the tornado
- Other entities then players are now also picked up
- Cleaned up the code a bit

roland
12-19-2005, 16:42
:lol: jah its a cool hero nice crafics to
tip make more please lol:P :lol:

vittu
12-19-2005, 16:43
http://forums.alliedmods.net/showthread.php?t=30953

maybe use this instead (I actually think this would fit much better) - http://www.marveldatabase.com/wiki/index.php/Whirlwind

K-OS
12-19-2005, 16:46
:cry: it already existed.
I checked but couldnt find it

Mr.Eat Fresh
12-19-2005, 18:18
Great hero, love the idea, and laughter it will bring into alot of servers. No bugs yet.

Emp`
12-19-2005, 18:25
ahahhahahaahahha you make me laugh lol i was workin on this hero lmao with same name ahahhahahhahaha rofl

nice code, and also how come when i open your smas i see boxes where "enters" normally are? is it cause your using a special program or somethin? cause it really bugs me when i want to look at your codes >.>

ps: your version is a lot better

K-OS
12-19-2005, 18:40
I think the boxes are because of linux.
But if you use Notepad++ http://notepad-plus.sourceforge.net/uk/about.php , you wont see the boxes.

Tnx btw :)
( I made a headshot plugin once, that played the FPSdoug sounds.
But i lost it somewhere :S I'f i find it again, i'll let you know )

The_One
12-20-2005, 06:04
nice hero but is there a cooldown to this? i can only use this once each round? and when people get sucked i have to be very close and they only go straight up is it possible to make them go in a circular motion?

~Zero~
12-20-2005, 06:59
wow~
nice hero

THX! :wink:

K-OS
12-20-2005, 09:52
You can use the hero only once per round, but if you want it with a cooldown i can add it in the next update.
It is posible to extend the range of cyclone with cyclone_range , the grafics wil also become larger.
I'm already working on the circular motion, it wil be in the next update.

K-OS
12-20-2005, 16:04
Hey i updated the cyclone hero::

I added the cooldown timer, so now you can use the power more then once per round.
Players now swirl around the cyclone.
Improved the phyics code , much beter now and a lot shorter
Added the Force CVAR

Gods_apprentice
12-20-2005, 16:16
Hey can u make the hero acutally spin the person? in the next update please.

The_One
12-20-2005, 20:48
Players now swirl around the cyclone.

Gj K-OS :wink:

Da Meat
12-20-2005, 23:44
this is pretty kewl o0o0o0o

Neepi
12-21-2005, 10:03
I know this is an offtopic message and maybe spamming but somene help me please, I can't edit anything on my server, heros, maps, xp amounts etc... Anyone else had this problem but fixed it? And I do not know what's the error so don't ask me to tell it... To make it less offtopic message I'll say that I can't edit this hero either, I can't actually add it to my server at all! Can't either remove old heros...

K-OS
12-21-2005, 11:53
http://pictures.superzooi.com/albums/forum_fun/bat5164.jpg

Da Meat
12-23-2005, 03:17
lol thats messed up. U prolly dont have amxx or amx admin priviledges.... Edit the users.ini file :roll:

The_One
12-23-2005, 08:15
sometimes the cyclone lasts for (x) amount of seconds that i set it on. but sometimes it only makes one spin then disapears is there anyway to fix it so it allways lasts for (x) amount of seconds?

K-OS
12-23-2005, 09:33
I'll see what i can do when i'm home

Bloodraven1337
12-23-2005, 12:08
yeah The_One that happens to me alot on my server , its quite annoying.

K-OS
12-23-2005, 15:21
I can't find any bugs in cyclone.
Does it happen when you choose a specific hero?
What other plugins do you have running on your server?

YodaGman
12-23-2005, 19:54
nice man i can see that you put alot of effort into it.

The_One
12-24-2005, 06:31
i doubt it is conflicting with another heroe i think it is just when i use it over an over some times it just makes 1 spin and everyone goes everywhere and sometimes im running sucking up everything in my path for a minute lol

K-OS
12-25-2005, 07:08
All i can think of what may be causing the error, is that it's isn't reading the cvars correct.
The cvar for the duration of the tornado gets read every time a tornado starts.

Is it posible to get an event when a cvar is changed??

K-OS
12-27-2005, 17:35
UPDATE::
Other entities then players are now also picked up

The cyclone now also picks up droped weapon, dead bodies, monsters from the monster module, the C4, grenades, etc..

I've tested this upgrade on he_glass2 with ALOT of zombies from the monster module, and my pc had no problem with it.
The only problem that i found was that it also moves the spawn points of weapons (like the grens on he_glass2)
So the weapons now spawn on the point were they landed.

Screenshot of zombies caught in the cyclone.
http://k-os.game-host.org/other/cs_assault0002.jpg

Emp`
12-27-2005, 18:11
nice dude, chance of converting it to module? ^_^ gj with making all entitys moving

K-OS
12-27-2005, 18:14
I think i can convert it to module, but i got to figure out how to do that first :)

EDIT:
Hey Emp, i think i converted it to module now but i haven't been able to test it.
Could you test it for me? Tnx.

yang
01-05-2006, 01:08
nice hero buddy. You beat me to it ;), i liked it but not so much the animation of the cyclone. Here's the cyclone graphics of which i never finished. Try it out and see what u think. :P I was gonna create mini cyclones but yeah i guess this could work large scale. Try it if u want. Just a suggestion. if it works out great large scale great... if not... move on lol.


new parm[11]
parm[6] = id
new origin[3], origin2[3]
get_user_origin(id,origin)
get_user_origin(parm[6],origin2)
parm[0]=origin[0]
parm[1]=origin[1]
parm[2]=origin[2]



public spin(parm[]){
new MULTIPLIER = 50 // the lower the number the faster it reaches the target

new origin[3], funnel[3]
get_user_origin(parm[6],origin)

funnel[0]=parm[0] // Origin of the funnel
funnel[1]=parm[1]
funnel[2]=parm[2]

message_begin( MSG_BROADCAST, SVC_TEMPENTITY )
write_byte( 100 )
write_coord( funnel[0] ) // origin, x
write_coord( funnel[1] ) // origin, y
write_coord( funnel[2] ) // origin, z
write_short( gSnow ) // sprite (0 for none)
write_short( 0 ) // 0 for collapsing, 1 for sending outward
message_end()


new xdist = diff(origin[0],funnel[0])
new ydist = diff(origin[1],funnel[1])
new zdist = diff(origin[2],funnel[2])

if(diff(origin[0],(funnel[0]-MULTIPLIER))<xdist)
parm[0]=funnel[0]-MULTIPLIER
else if(diff(origin[0],(funnel[0]+MULTIPLIER))<xdist)
parm[0]=funnel[0]+MULTIPLIER
else
parm[0]=origin[0]

if(diff(origin[1],(funnel[1]-MULTIPLIER))<ydist)
parm[1]=funnel[1]-MULTIPLIER
else if(diff(origin[1],(funnel[1]+MULTIPLIER))<ydist)
parm[1]=funnel[1]+MULTIPLIER
else
parm[1]=origin[1]

if(diff(origin[2],(funnel[2]-MULTIPLIER))<zdist)
parm[2]=funnel[2]-MULTIPLIER
else if(diff(origin[2],(funnel[2]+MULTIPLIER))<zdist)
parm[2]=funnel[2]+MULTIPLIER
else
parm[2]=origin[2]
}



public plugin_precache()
{
gSnow = precache_model("sprites/snow.spr")

}

The_One
01-05-2006, 07:20
I know this is an offtopic message and maybe spamming but somene help me please, I can't edit anything on my server, heros, maps, xp amounts etc... Anyone else had this problem but fixed it? And I do not know what's the error so don't ask me to tell it... To make it less offtopic message I'll say that I can't edit this hero either, I can't actually add it to my server at all! Can't either remove old heros...

you know that this dont belong in this topic so why post here? post in help.

K-OS
01-05-2006, 16:26
Hey yang, tnx for your suggestion. But i already tested the funnel effect and i found it a bit too "static".
I could make beter cyclone effects but then you would need something like a fiber optic internet connection on your server.
( costs about 399 euro a month , i checked )

yang
01-05-2006, 16:30
i don't understand why u would need a fiberoptic cable for the cyclone effect lol. Mine is a cyclone effect where it spins the "snow" sprites in a circular motion downward and inward. I really don't see why you would need a fiber optic cable to create a funnel shaped cyclone, but okey lol...

K-OS
01-05-2006, 16:33
no no, sry but i didn't ment that the funnel effect needed the fiber connection.
What i ment was, that if i made my own "funnel" effect that behaved the way i want it to, then you would need a fiber connection.


btw. i just noticed the yellow box under my name. Why did i got that??

Gods_apprentice
01-14-2006, 17:29
becuz mabye ur probably spamming alot.

-: Xdc :- SqUiD!
01-16-2006, 23:45
:P wow this is alot like what i asked for like 1 year ago it was called blow back bob and everyone rejected me.
and here it is made.. man i am really disapointed in who ever said it could not be done.. :roll:

The_One
01-17-2006, 04:31
That hero i suggested "black hole" where you get sucked towards and into a black hole and die :lol: is it possible to use the code from this? to do that?