Raised This Month: $51 Target: $400
 12% 

Solved black hole for warcraft server


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Indarello
Senior Member
Join Date: Nov 2015
Location: Russia
Old 09-25-2016 , 07:04   black hole for warcraft server
Reply With Quote #1

Hello, I need a code to spawn something like black hole on coordinates x y z with radius 100
it must make some damage everyone who in it, for example 10 hp/sec
and pull everyone who are near it
and create timer to delete it after 10 seconds
Sorry for my english

Last edited by Indarello; 10-01-2016 at 02:15.
Indarello is offline
Indarello
Senior Member
Join Date: Nov 2015
Location: Russia
Old 09-25-2016 , 13:10   Re: black hole for warcraft server
Reply With Quote #2

http://warcraft-source.com/board/ind...?topic=12683.0
can any one port it?

Last edited by Indarello; 09-25-2016 at 13:11.
Indarello is offline
Indarello
Senior Member
Join Date: Nov 2015
Location: Russia
Old 09-27-2016 , 12:39   Re: black hole for warcraft server
Reply With Quote #3

I have code now, solved
Attached Files
File Type: sp Get Plugin or Get Source (1War3Source_Enigma.sp - 76 views - 34.3 KB)
Indarello is offline
Indarello
Senior Member
Join Date: Nov 2015
Location: Russia
Old 09-28-2016 , 12:07   Re: black hole for warcraft server
Reply With Quote #4

This plugin have one disatvantage, it works like timer repeat every 0.1 sec it "TeleportEntity()" for some distance
And it works like teleport
Maybe there is another way to make black hole absorb you smoothly?
Indarello is offline
thecount
Veteran Member
Join Date: Jul 2013
Old 09-28-2016 , 22:45   Re: black hole for warcraft server
Reply With Quote #5

Quote:
Originally Posted by Indarello View Post
Maybe there is another way to make black hole absorb you smoothly?
Use velocity instead of teleporting.
thecount is offline
Indarello
Senior Member
Join Date: Nov 2015
Location: Russia
Old 09-29-2016 , 04:31   Re: black hole for warcraft server
Reply With Quote #6

Quote:
Originally Posted by thecount View Post
Use velocity instead of teleporting.
Code example please
Attached Images
File Type: jpg 123.jpg (13.6 KB, 174 views)

Last edited by Indarello; 09-29-2016 at 04:33.
Indarello is offline
thecount
Veteran Member
Join Date: Jul 2013
Old 10-01-2016 , 00:46   Re: black hole for warcraft server
Reply With Quote #7

Quote:
Originally Posted by Indarello View Post
Code example please
I looked through that source to find where the clients are teleported and found:
PHP Code:
PushEntToVector(toriginGetConVarFloat(cvarHolePower)); 
I assume that this is manually updating the position per server frame, instead of using velocity which would be more client-friendly. BUT, as a disclaimer, I do not know for certain what this function does. For an example, if I wanted to apply a certain velocity magnitude on a player towards a point I could use:

Spoiler
thecount is offline
Indarello
Senior Member
Join Date: Nov 2015
Location: Russia
Old 10-01-2016 , 02:14   Re: black hole for warcraft server
Reply With Quote #8

Quote:
Originally Posted by thecount View Post
I looked through that source to find where the clients are teleported and found:
PHP Code:
PushEntToVector(toriginGetConVarFloat(cvarHolePower)); 
I assume that this is manually updating the position per server frame, instead of using velocity which would be more client-friendly. BUT, as a disclaimer, I do not know for certain what this function does. For an example, if I wanted to apply a certain velocity magnitude on a player towards a point I could use:

Spoiler
WOWOWOWOWO THAT WORK REALY COOOOL
Thanks very much
Indarello is offline
Reply



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 16:09.


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