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 2012-10-01 (original capture). Home · Forum · All archived topics · Downloads
October 01, 2012, 05:22:09 AM

Author Topic: Commands  (Read 239 times)

Offline Remilia Scarlet

  • Level 4 Intermediate
  • ****
  • Posts: 98
  • <3 WCS :)
Commands
« on: August 02, 2012, 03:41:16 AM »
hmmmm... i'd love to request a silence command..

es wcs_setfx silence <userid> <active> <duration>

what it would do. is make the player unavailable to attack at all, for that x duration.. to put it simple, they cant fire any weapons at all, until the duration is over..

theres probably a other way around it.. but would still be great..

another 1, is looking into the noclip part..
 
make 1 like this :

es wcs_setfx noclip <userid> <active> <duration>

the reason for requesting that noclip part. is basically i wanted a fly thingie of a kind, where you can fly like jet pack + noclip.. it would make you fly freely, whitout the hard control part (jetpack is at times hard to control, direction way). aswell it wont give you "godmode", neither make you allowed to fly through walls and etc. as it would be a nice thing to have on races like superman, ghost, etc..

thats all i can think of now. there would be lovely to have :)

Offline Haakon

  • Level 7 Expert
  • *****
  • Posts: 159
Re: Commands
« Reply #1 on: August 02, 2012, 04:34:17 AM »
i like the first idea, but i am no scripter :/

Offline Kamiqawa

  • Moderator
  • Level 7 Expert
  • *****
  • Posts: 471
Re: Commands
« Reply #2 on: August 02, 2012, 05:33:38 AM »
Hello,

I was just about to code similar skill as the silence skill you suggested but with name of wcs_stun. I'll post it on forums with ~20 other new commands soon.

Edit: Or actually I could do a silence and stun separately as the stun could also prevent the player from moving.
Quote from: $Diablo$
You are banana dabass... Kami tried to proof point here and you ruin it >.>



Click here for wcs content made by me.


Offline Remilia Scarlet

  • Level 4 Intermediate
  • ****
  • Posts: 98
  • <3 WCS :)
Re: Commands
« Reply #3 on: August 03, 2012, 05:25:44 AM »
Hello,

I was just about to code similar skill as the silence skill you suggested but with name of wcs_stun. I'll post it on forums with ~20 other new commands soon.

Edit: Or actually I could do a silence and stun separately as the stun could also prevent the player from moving.

sounds great. is it possible you could number 2 aswell?

Offline deathkilla5656

  • Level 7 Expert
  • *****
  • Posts: 707
    • Infinite Gaming Clan
Re: Commands
« Reply #4 on: August 12, 2012, 10:34:24 AM »
SO TIGHT! haha

<3 i requested this a while back from this post:
http://warcraft-source.com/board/index.php?topic=14820.0

which was never attempted.

Offline Remilia Scarlet

  • Level 4 Intermediate
  • ****
  • Posts: 98
  • <3 WCS :)
Re: Commands
« Reply #5 on: September 23, 2012, 09:30:35 AM »
SO TIGHT! haha

<3 i requested this a while back from this post:
http://warcraft-source.com/board/index.php?topic=14820.0

which was never attempted.

just saw this msg O.O..

well its really a thing or 2 we actually would need to expand further on the race coding :b... aswell some races would love it for those skills haha


lets hope for 1 or another gets added :)

Offline Predz

  • WCS Developer
  • Level 7 Expert
  • *****
  • Posts: 336
  • Warcraft:SPE
Re: Commands
« Reply #6 on: September 29, 2012, 11:52:20 AM »
Well you can't do this via ES, but maybe possible with SPE. However SPE has issues with Linux, so is a NO GO!

If I was to do this I would try to use es.remove and es.give, etc. But I guess this is not going to give the effect you wanted. Using the new SourcePython this should be easily possible but for the meantime, have a look at this.

Code: [Select]
def silence(user, time):
## Get Player Info Using PlayerLib.
player = getPlayer(user)
## Obtain All Player's Weapons.
weapons = player.getWeaponList()
## Foreach Weapon they Own.
for weapon in weapons:
## Temporarily Save the Players Weapon Names, and Remove them From Game.
players[user][weapon] = 1
es.remove(player.getWeaponIndex(weapon))
## Delay for Duration.
time.sleep(time)
for weapon in players[user]:
## Give the Player His Weapons Back and Delete them from DB.
players[user][weapon] = 0
es.give(user, weapon)

Offline Remilia Scarlet

  • Level 4 Intermediate
  • ****
  • Posts: 98
  • <3 WCS :)
Re: Commands
« Reply #7 on: September 29, 2012, 01:13:16 PM »
Well you can't do this via ES, but maybe possible with SPE. However SPE has issues with Linux, so is a NO GO!

If I was to do this I would try to use es.remove and es.give, etc. But I guess this is not going to give the effect you wanted. Using the new SourcePython this should be easily possible but for the meantime, have a look at this.

Code: [Select]
def silence(user, time):
## Get Player Info Using PlayerLib.
player = getPlayer(user)
## Obtain All Player's Weapons.
weapons = player.getWeaponList()
## Foreach Weapon they Own.
for weapon in weapons:
## Temporarily Save the Players Weapon Names, and Remove them From Game.
players[user][weapon] = 1
es.remove(player.getWeaponIndex(weapon))
## Delay for Duration.
time.sleep(time)
for weapon in players[user]:
## Give the Player His Weapons Back and Delete them from DB.
players[user][weapon] = 0
es.give(user, weapon)
suggested it to be added through.. as a normal race command, eventho theres a other way to do it..
« Last Edit: September 29, 2012, 01:17:02 PM by Remilia Scarlet »