Archived copy of war3source.com, the War3Source forum (2009–2020), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2012-10-24 (original capture). Forum · All archived topics · Wiki · Bug tracker · Blog
Chat

War3:Source
October 24, 2012, 03:13:18 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Download: http://war3source.com/index.php?board=9.0
What is War3Source?: http://war3source.com/index.php?topic=200.0
Sample Stats: http://war3source.com/war3stats
Steam Community Group: http://steamcommunity.com/groups/war3source
War3Source SVN Checkout: http://ownageclan.com/svn/war3source/
War3Source servers: http://www.game-monitor.com/search.php?vars=war3_version=
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Push Client  (Read 691 times)
Black-Rabbit
Newbie
*
Posts: 17


View Profile Email
« on: July 21, 2010, 10:30:07 AM »

Hello, I just wondering about how to push a client in the aire (the command please).

Sorry for my english, hope you answer me  Tongue
Logged
Ownz
Developer
Administrator
Hero Member
*****
Posts: 2045



View Profile WWW Email
« Reply #1 on: July 21, 2010, 10:32:25 AM »

are u from a es back ground?
Logged

DarkEnergy
Black-Rabbit
Newbie
*
Posts: 17


View Profile Email
« Reply #2 on: July 21, 2010, 10:48:37 AM »

I was doing python, but I moved to sourcemod before the css update so I'm realy enjoy it.
I though that was possible in there are no push command and I must do it by myself whit a teleport loop.

Thank for answer.
Logged
Ownz
Developer
Administrator
Hero Member
*****
Posts: 2045



View Profile WWW Email
« Reply #3 on: July 21, 2010, 10:52:01 AM »

you use TeleportEntity(...) with a velocity vector that has some direction xyz


TeleportEntity(client,NULL_VECTOR,NULL_VECTOR,{0.0,0.0,100.0}); to throw them upwards
Logged

DarkEnergy
Black-Rabbit
Newbie
*
Posts: 17


View Profile Email
« Reply #4 on: July 21, 2010, 11:21:03 AM »

Perfect, I'm working on Admiral Proudmoore. Push it for the first skills "TORRENT=War3_AddRaceSkill(raceID, "Torrent", "Have 7-21% to levitate your victim.", false, 4);".

I also need help for a last thing, it about create a ship entity and make it has an animation (pass throw wall and stuff). The ultimate need it. I know it will be difficult but I just wondering if it possible.

Thank you
Logged
Ownz
Developer
Administrator
Hero Member
*****
Posts: 2045



View Profile WWW Email
« Reply #5 on: July 21, 2010, 11:23:26 AM »

gladiator?

its possible but i have no idea how to do it, im not a person of entity knowledge, ud have to ask on the sourcemod forums.
Logged

DarkEnergy
Black-Rabbit
Newbie
*
Posts: 17


View Profile Email
« Reply #6 on: July 21, 2010, 11:34:30 AM »

Thank you, I will.

If you have a resource web page where I can learn making effect whit the sdktool or what ever I will apreciate.
Logged
Ownz
Developer
Administrator
Hero Member
*****
Posts: 2045



View Profile WWW Email
« Reply #7 on: July 21, 2010, 11:36:00 AM »

look in sourcemod api

sdktools_tempents
sdktools_tempents_stocks
Logged

DarkEnergy
Black-Rabbit
Newbie
*
Posts: 17


View Profile Email
« Reply #8 on: July 21, 2010, 11:56:04 AM »

Thank you
Logged
Black-Rabbit
Newbie
*
Posts: 17


View Profile Email
« Reply #9 on: July 21, 2010, 12:59:52 PM »

Hello back,

I try TeleportEntity(victim, NULL_VECTOR, NULL_VECTOR, {0.0,0.0,TorrentPush[skill_level]}); but it throw me an error: "error 008: must be a constant expression; assumed 0"
Logged
Ownz
Developer
Administrator
Hero Member
*****
Posts: 2045



View Profile WWW Email
« Reply #10 on: July 21, 2010, 01:02:41 PM »

cant put variables in like taht
so make
new Float:vec[3];
vec[2]=torrentpush[skillelvel];

and pass vec in teleportentity
Logged

DarkEnergy
Black-Rabbit
Newbie
*
Posts: 17


View Profile Email
« Reply #11 on: July 21, 2010, 01:10:13 PM »

I understand!  Tongue

Thank you
Logged
[Oddity]TeacherCreature
Sr. Member
****
Posts: 463


View Profile
« Reply #12 on: August 03, 2010, 09:18:32 AM »

do not use teleport u dont want to magically have them appear in the air u want to PUSH
use

Code:
new Float:velocity[3];
velocity[2]=300;
SetEntDataVector(victim,m_vecBaseVelocity,velocity,true);

 and up top
new m_vecBaseVelocity;

then on on plugin start
m_vecBaseVelocity = FindSendPropOffs("CBasePlayer","m_vecBaseVelocity");

It is a base player sub levle property

it accepts vectors whic instead of x y z directions it uses velocity[0] velocity[1] velocity[2]

hope that helps from a python point of view
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!