Archived copy of warcraft-source.com, the Warcraft: Source (WCS) forum (2007–2011), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2010-09-01 (original capture). Home · Forum · All archived topics · Downloads

Author Topic: Approved~ [Addon] [WCX] Warcraft Extra Commands.  (Read 1991 times)

MiB

  • Custom Coder
  • Level 7 Expert
  • Posts: 1039
Approved~ [Addon] [WCX] Warcraft Extra Commands.
« on: July 15, 2010, 02:46:22 AM »
Requires:
  • Source Python Extentions(SPE)
  • EventScripts 3.3.8

Commands:
Code: [Select]
"wcx_bomb"
 - [Warcraft Extra Commands] wcx_bomb - Sets a time bomb on a player.
 - wcx_bomb <userid> <seconds> <radius>
"wcx_noclip"
 - [Warcraft Extra Commands] wcx_noclip - Gives or removes noclip on a player.
 - wcx_noclip <userid> <0/1>
"wcx_ghost"
 - [Warcraft Extra Commands] wcx_ghost - Gives noclip to a player for amount of seconds.
 - wcx_ghost <userid> <seconds>
"wcx_invis"
 - [Warcraft Extra Commands] wcx_invis - Gives invis to a player for amount of seconds.
 - wcx_invis <userid> <seconds> <0-255>
"wcx_dealpoison"
 - [Warcraft Extra Commands] wcx_dealpoison - Deals poison damage from a userid to another userid for amount of seconds.
 - wcx_dealpoison <attacker> <victim> <damage> <seconds>
"wcx_getviewcoords"
 - [Warcraft Extra Commands] wcx_getviewcoord - Gets where the player is looking at.
 - wcx_getviewcoords <userid> <xvar> <yvar> <zvar>
"wcx_god"
 - [Warcraft Extra Commands] wcx_god - Gives god mode to a player for amount of seconds.
 - wcx_god <userid> <seconds>
"wcx_evade"
 - [Warcraft Extra Commands] wcx_evade - Lets you set a chance of evading bullets on players.
 - wcx_evade <userid> <chance>
"wcx_evade_damage"
 - [Warcraft Extra Commands] wcx_evade_damage - Lets you set a chance of evading bullets on players.
 - wcx_evade_damage <userid> <chance> <damage>
"wcx_evade_hitgroup"
 - [Warcraft Extra Commands] wcx_evade_hitgroup - Lets you set a chance of evading bullets on players.
 - wcx_evade_hitgroup <userid> <chance> <hitgroup>
"wcx_evade_hitgroup_damage"
 - [Warcraft Extra Commands] wcx_evade_hitgroup_damage - Lets you set a chance of evading bullets on players.
 - wcx_evade_hitgroup_damage <userid> <chance> <hitgroup> <damage>
"wcx_right_text"
 - [Warcraft Extra Commands] wcx_right_text - Lets you send a text message thats on the right to a player.
 - wcx_right_text <userid> <text>
"wcx_right_text_msg"
 - [Warcraft Extra Commands] wcx_right_text_msg - Lets you send a text message thats on the right to all players.
 - wcx_right_text_msg <text>
"wcx_center_text"
 - [Warcraft Extra Commands] wcx_center_text - Lets you send a text message thats on the center to a player.
 - wcx_center_text <userid> <text>
"wcx_center_text_msg"
 - [Warcraft Extra Commands] wcx_center_text_msg - Lets you send a text message thats on the center to all players.
 - wcx_center_text_msg <text>
"wcx_nadeback"
 - [Warcraft Extra Commands] wcx_nadeback - Lets you set a player to get a nade back when that player throws one.
 - wcx_nadeback <userid> <hegrenade/smokegrenade/flashbang> <delay>
"wcx_effect"
 - [Warcraft Extra Commands] wcx_effect - Effect Creation
 - wcx_effect line <x> <y> <z> <x2> <y2> <z2> <model> <time> <width> <endwidth> <red> <green> <blue> <brightness> <speed>
 - wcx_effect ring <x> <y> <z> <size> <model> <time> <width> <endwidth> <red> <green> <blue> <brightness> <speed>
 - wcx_effect cone <x> <y> <z> <cone length> <size> <model> <time> <width> <endwidth> <red> <green> <blue> <brightness> <speed>
"wcx_impulse"
 - [Warcraft Extra Commands] wcx_impulse - Lets you set a player's speed that lets for x seconds.
 - wcx_impulse <userid> <seconds> <speed> <default speed>
"wcx_thirdperson"
 - wcx_thirdperson <userid> <0/1> <draw gun 0/1>
"wcx_teleport"
 - wcx_teleport <userid> <multiplier> <range> <fade timer>
"wcx_push"
 - wcx_push <userid> <x multiplier> <y multiplier> <z multiplier>
"wcx_pushto"
 - wcx_pushto <userid> <x> <y> <z> <x multiplier> <y multiplier> <z multiplier>

Current Default wcx_config.cfg
Code: [Select]
// [WCX] Warcraft-Source Extra Commands Config
// [WCX] V2.R By MiB
// Please note currently wcx_stopgravreset in this config is working, it is just here for refence for the next [WCX] update.
 

// Stop a player's gravity reseting when he/she gets on a ladder.
   wcx_stopgravreset 1

// Write in the player's console a message saying that [WCX] is active.
   wcx_welcomemessage 1

Hitgroups
Code: [Select]
Head - 1
Cheat - 2
Pelvis - 3
Left Arm - 4
Left Leg - 6
Right Arm - 5
Right Leg - 7

Example Script
Code: [Select]
event player_say
{
// Ring Effect Test
// wcx_effect ring <x> <y> <z> <size> <model> <time> <width> <endwidth> <red> <green> <blue> <brightness> <speed>
if (event_var(text) = !ring) do
{
es_xset tmp 0
es_xset tmp1 0
es_xset tmp2 0
es_getplayerlocation tmp tmp1 tmp2 event_var(userid)
es_xmath tmp2 + 50
es wcx_effect ring server_var(tmp) server_var(tmp1) server_var(tmp2) 100 sprites/blueshaft1.vmt 4 2 2 50 50 255 255 10
}
// Cone Effect Test
// wcx_effect cone <x> <y> <z> <cone length> <size> <model> <time> <width> <endwidth> <red> <green> <blue> <brightness> <speed>
if (event_var(text) = !cone) do
{
es_xset tmp 0
es_xset tmp1 0
es_xset tmp2 0
es_getplayerlocation tmp tmp1 tmp2 event_var(userid)
es_xmath tmp2 + 80
es wcx_effect cone server_var(tmp) server_var(tmp1) server_var(tmp2) 500 100 sprites/blueshaft1.vmt 4 2 2 50 50 255 255 10
}
// Line Effect Test
// wcx_effect line <x> <y> <z> <x2> <y2> <z2> <model> <time> <width> <endwidth> <red> <green> <blue> <brightness> <speed>
if (event_var(text) = !line) do
{
es_xset tmp 0
es_xset tmp1 0
es_xset tmp2 0
es_xset tmpx 0
es_xset tmp1x 0
es_xset tmp2x 0
es_getplayerlocation tmp tmp1 tmp2 event_var(userid)
es_getplayerlocation tmpx tmp1x tmp2x event_var(userid)
es_xmath tmp2x + 300
es wcx_effect line server_var(tmp) server_var(tmp1) server_var(tmp2) server_var(tmpx) server_var(tmp1x) server_var(tmp2x) sprites/blueshaft1.vmt 4 5 5 50 50 255 255 10
}
// Line Effect Test 2
// wcx_effect line <x> <y> <z> <x2> <y2> <z2> <model> <time> <width> <endwidth> <red> <green> <blue> <brightness> <speed>
if (event_var(text) = !line2) do
{
es_xset tmp 0
es_xset tmp1 0
es_xset tmp2 0
es_xset tmpx 0
es_xset tmp1x 0
es_xset tmp2x 0
es_getplayerlocation tmp tmp1 tmp2 event_var(userid)
es wcx_getviewcoords event_var(userid) tmpx tmp1x tmp2x
es_xmath tmp2 + 50
es wcx_effect line server_var(tmp) server_var(tmp1) server_var(tmp2) server_var(tmpx) server_var(tmp1x) server_var(tmp2x) sprites/blueshaft1.vmt 4 5 5 50 50 255 255 10
}
// Bomb Test
// wcx_bomb <userid> <seconds> <radius>
if (event_var(text) = !bomb) do
{
es wcx_bomb event_var(userid) 5 600
}
// God Test
// wcx_god <userid> <seconds>
if (event_var(text) = !god) do
{
es wcx_god event_var(userid) 8
}
}

Effect Preview (Video)

Recoded WCX
_______
Website/Source Code/Documentation
Release 1
_______

Just extract the folder inside the .zip file into your desktop then upload the folder into your server under the eventscripts folder of your server.
Then in the autoexec add es_load wcx and your are done then!
« Last Edit: Today at 03:40:37 AM by MiB »

~The Sig Changes Each Time~
~The Sigs Them Selfs Are By Hybrid Click The Sigs To See His Other Sigs~

MiB

  • Custom Coder
  • Level 7 Expert
  • Posts: 1039
Re: [WCX] Warcraft Extra Commands.
« Reply #1 on: July 15, 2010, 02:47:17 AM »
Btw wcx_getviewcoords is perfect and I can't think why no one has thought of it before :D.
I'll give you a hint it works JUST as the real ES_Tools plugin version did.
Also if people want it I could also make a wcx_push command that maybe worked exactly like real ES_Tools plugin version did tho its a maybe.

~The Sig Changes Each Time~
~The Sigs Them Selfs Are By Hybrid Click The Sigs To See His Other Sigs~

joshtrav

  • Guest
Re: [WCX] Warcraft Extra Commands.
« Reply #2 on: July 15, 2010, 03:51:28 AM »
1.  No one in their right mind downloads a PYC without any remote value of source IMO.
2.  How do you know what ES_Tools did? (This is a rhetorical question)

No disrespect, but I highly doubt you did anything other than what was already posted on the ES forums for this and claimed it as your own?  Why would I say that?  Considering its only been on their a day and you just pop up with this.

As far as push, lets be realistic man.  just dump the player class and ....
Code: [Select]
CCSPlayer.baseclass.localdata.m_vecVelocity

Crazy thought, lets grab its values, and than add the absolute call of them to whatever you want to push.. No way, really?!? 
« Last Edit: July 15, 2010, 03:55:27 AM by joshtrav »

MiB

  • Custom Coder
  • Level 7 Expert
  • Posts: 1039
Re: [WCX] Warcraft Extra Commands.
« Reply #3 on: July 15, 2010, 03:55:50 AM »
1.  No one in their right mind downloads a PYC without any remote value of source IMO.
2.  How do you know what ES_Tools did? (This is a rhetorical question)

No disrespect, but I highly doubt you did anything other than what was already posted on the ES forums for this and claimed it as your own?  Why would I say that?  Considering its only been on their a day and you just pop up with this.
Don't really get 1..
2. Because I'm just sure :)

No disrespect gotten but I did do this my self :P

Updating in a few seconds this update contains:
1) Dead checks on all commands.
2) Anti Round Rolling on the duration commands.
3) wcx_dealpoison and wcx_invis will be added.

Anti Round Rolling = commands NOT rolling over to the next round.
« Last Edit: July 15, 2010, 04:16:45 AM by Shidobu »

~The Sig Changes Each Time~
~The Sigs Them Selfs Are By Hybrid Click The Sigs To See His Other Sigs~

MiB

  • Custom Coder
  • Level 7 Expert
  • Posts: 1039
Re: [WCX] Warcraft Extra Commands.
« Reply #4 on: July 15, 2010, 04:20:31 AM »
Oppies wcx_getviewcoords is wcx_getviewcoord in the version I uploaded.
I will be changing it to wcx_getviewcoords in the next update thats coming after I finish testing right now.

~The Sig Changes Each Time~
~The Sigs Them Selfs Are By Hybrid Click The Sigs To See His Other Sigs~

MaxLap

  • Level 0 Beginner
  • Posts: 14
  • <3 WCS :)
Re: [WCX] Warcraft Extra Commands.
« Reply #5 on: July 15, 2010, 04:40:49 AM »
What joshtrav means is that since you only give a .pyc, it is not the source code of the plugin. This means you could be doing absolutely anything in there an no one would be able to know. You could have something that changes rcon for example.

That is not exactly true, it is possible to kinda get an idea of what the source looks like, but it is nearly unreadable. I can tell you that your getviewcoord is absolutely wrong. lol.

your xvar: CCSPlayer.m_angEyeAngles[0] returns the current angle of the eyes horizontally
your yvar: CCSPlayer.m_angEyeAngles[1] same but vertically
your zvar: CCSPlayer.baseclass.localdata.m_vecViewOffset[2] is the difference between where your camera is and your feet on the 'z' axis.

Did you even test this? I did not for the reason mentioned above, but the code is very clear on that part. est_getviewcoord is suposed to return the location where you are currently looking at.

   Hosted by:    

MiB

  • Custom Coder
  • Level 7 Expert
  • Posts: 1039
Re: [WCX] Warcraft Extra Commands.
« Reply #6 on: July 15, 2010, 04:43:16 AM »
Updated:
1) Added Anti Round Rolling
2) Added wcx_dealpoison
3) Added wcx_invis
4) Added Dead Checks

(Note: Anti Round Rolling means it will not roll over to the next round)

Will Be Adding In Next Update:
1) wcx_noclip
2) wcx_ghost
3) wcx_timebomb

~The Sig Changes Each Time~
~The Sigs Them Selfs Are By Hybrid Click The Sigs To See His Other Sigs~

MiB

  • Custom Coder
  • Level 7 Expert
  • Posts: 1039
Re: [WCX] Warcraft Extra Commands.
« Reply #7 on: July 15, 2010, 04:43:50 AM »
Yes I tested this on my server desktop.

~The Sig Changes Each Time~
~The Sigs Them Selfs Are By Hybrid Click The Sigs To See His Other Sigs~

MiB

  • Custom Coder
  • Level 7 Expert
  • Posts: 1039
Re: [WCX] Warcraft Extra Commands.
« Reply #8 on: July 15, 2010, 05:53:55 AM »
Okayz after alot! more trial and error with the getviewcoords I finally made it work more properly >.>.
UPDATE!

~The Sig Changes Each Time~
~The Sigs Them Selfs Are By Hybrid Click The Sigs To See His Other Sigs~

MiB

  • Custom Coder
  • Level 7 Expert
  • Posts: 1039
Re: [WCX] Warcraft Extra Commands.
« Reply #9 on: July 16, 2010, 03:52:44 AM »
Updated

Added 3 new commands:
-wcx_bomb
-wcx_noclip
-wcx_ghost
Added a commandlist.txt in the download for reference.
Updated the first post to tell what each command does.

~The Sig Changes Each Time~
~The Sigs Them Selfs Are By Hybrid Click The Sigs To See His Other Sigs~

[Oddity]TeacherCreature

  • Moderator
  • Level 7 Expert
  • Posts: 1714
Re: [WCX] Warcraft Extra Commands.
« Reply #10 on: July 16, 2010, 04:26:25 AM »
please consider providing open source,
I dont know anyone who would install that

the only two times it was downloaded were both me to see if zip included open source

MiB

  • Custom Coder
  • Level 7 Expert
  • Posts: 1039
Re: [WCX] Warcraft Extra Commands.
« Reply #11 on: July 16, 2010, 04:27:25 AM »
please consider providing open source,
I dont know anyone who would install that

the only two times it was downloaded were both me to see if zip included open source
I alot of people already put it on.
And are trying it.

~The Sig Changes Each Time~
~The Sigs Them Selfs Are By Hybrid Click The Sigs To See His Other Sigs~

necavi

  • Watchdogs
  • Level 7 Expert
  • Posts: 327
  • WCSx Codeveloper
Re: [WCX] Warcraft Extra Commands.
« Reply #12 on: July 16, 2010, 04:45:30 AM »
what is wcx_ghost supposed to do?

MiB

  • Custom Coder
  • Level 7 Expert
  • Posts: 1039
Re: [WCX] Warcraft Extra Commands.
« Reply #13 on: July 16, 2010, 04:46:24 AM »
Timed noclip.
wcx_ghost <userid> <seconds>

~The Sig Changes Each Time~
~The Sigs Them Selfs Are By Hybrid Click The Sigs To See His Other Sigs~

necavi

  • Watchdogs
  • Level 7 Expert
  • Posts: 327
  • WCSx Codeveloper
Re: [WCX] Warcraft Extra Commands.
« Reply #14 on: July 16, 2010, 04:51:23 AM »
Ah, it sounded too much like setting the dead flag on someone while they are alive.