August 23, 2017, 09:57:55 AM

Author Topic: [Hero Wars] Official  (Read 8159 times)

Offline Manifest

  • Moderator
  • Level 7 Expert
  • *****
  • Posts: 738
  • Country: dk
  • If you LIKE WC:S, then you will LOVE our server.
Re: [Hero Wars] Official
« Reply #60 on: March 12, 2015, 06:45:27 PM »
As I told you it wouldn't be so bad, and it would give one hell of great experiences! Which must have been true as the time flew that fast :)
I am glad to hear you will have more time for your hobbies, hopefully I'll see you online more often then :)

Sincerely
- Manifest
Join together in the making of the final version of WCS

For more info about the project, take a look at:
http://warcraft-source.com/board/index.php?topic=17083.msg120498;topicseen#new

Offline Mahi

  • Watchdog
  • Level 0 Beginner
  • *****
  • Posts: 19
  • Country: fi
  • Warcraft: GO lead programmer
Re: [Hero Wars] Official
« Reply #61 on: March 12, 2015, 08:55:34 PM »
Not only Kamiqawa being busy with his military service, but I'm also having my finals. Since the last exam will be on wednesday, you can expect a lot more frequent updates after that. So don't expect much to happen this week, but I guarantee we'll get the project up and running again when my finals are over and Kamiqawa is back :)
« Last Edit: March 13, 2015, 09:36:54 AM by Mahi »

Offline Masteraviv13

  • Level 7 Expert
  • *****
  • Posts: 462
  • Country: 00
  • Python remains a bitch, though I will never quit
    • <a href="http://alwaysfunkilling.com" title="An evolution of modern combat">Always Fun Killing</a>]<a href="http://alwaysfunkilling.com" title="An evolution of modern combat">Always Fun Killing<
Re: [Hero Wars] Official
« Reply #62 on: March 13, 2015, 10:54:06 AM »
First try without looking anything up :p
Probably some mistakes but tell me ;)

Code: [Select]
from herowars.entities import Hero, Skill
from herowars.tools import chance, chancef
from herowars.tools import cooldown, cooldownf
from herowars.players import get_player
import herowars.commandlib as cmdlib
from filters.players import PlayerIter



class humanAlliance(Hero):
name = 'Human Guard'
description = 'Hero version of Human Alliance'
authors = ('Deagle')


@humanAlliance.passive
class Devotion(Skill):
name = 'Devotion Aura'
description = 'Gain additional health on spawn.'
max_level = 4

devotion = self.level * 15

def on_spawn(self, player, **eargs):
player.health += devotion
cmdlib.tell(player, '%s health from a Devotion Aura.', % devotion)

       
@humanAlliance.skill
class Bash(Skill):
name = 'Bash'
description = 'Stun your enemy and remove movement speed buffs.'
max_level = 4
bashtime = 0.3 * self.level

@chance(33)
def on_attack(self, attacker, defender, **eargs):
defender.set_property_float('m_flLaggedMovementValue', 0)
cmdlib.tell(defender, 'You got bashed!')
cmdlib.tell(attacker, 'You bashed your enemy!')
es.delayed(.3, reset(defender))

def reset():
defender.set_property_float('m_flLaggedMovementValue', 1)


@humanAlliance.skill
class Invisibility(Skill):
name = 'Invis'
description = 'Become partially Invisible.'
max_level = 4

def on_spawn(self, player, **eargs):
#Waiting for invisibility support


@humanAlliance.skill
class Teleport(Skill):
name = 'Teleport'
description = 'Ultimate: Teleport'
max_level = 4
cost = 2
required_level = 5
force = self.level * 100
vector = player.getViewcoord

@cooldownf(lambda self, **eargs: 20 - self.level * 2)
def on_ultimate(self, player, **eargs):
push(player, (vector - player.location) * force)
« Last Edit: March 13, 2015, 12:52:23 PM by Masteraviv13 »




Offline Predz

  • Moderator
  • Level 7 Expert
  • *****
  • Posts: 551
  • Country: england
  • Warcraft: GO Co-Lead Programmer
Re: [Hero Wars] Official
« Reply #63 on: March 13, 2015, 05:42:23 PM »
Not to sure how much Python coding you have done before Deagle, but I will try help best I can ;)

Problem #1: When you are defining your "devotion" variable inside your "Devotion" class, you are calling upon the object "self" before it is even initialized. So therefore an error will occur due to the inability to find it. Instead you should define "devotion" inside the "on_spawn" function as you have specified where "self" comes from.
The same problem is in your "Bash" class.

Problem #2: When you used the "%" way of formatting, the variables being inserted are not separate arguments.

Code: [Select]
@humanAlliance.passive
class Devotion(Skill):
name = 'Devotion Aura'
description = 'Gain additional health on spawn.'
max_level = 4

def on_spawn(self, player, **eargs):
devotion = self.level * 15
player.health += devotion
cmdlib.tell(player, '%s health from a Devotion Aura.' %(devotion))

Problem #3: Inside your "Teleport" class, you have defined "vector" using the "player" object, which again doesn't exist. So therefore you must define it inside the "on_ultimate" function.

Problem #4: The "getViewcoord" function is named "get_view_coordinates" in SourcePython. Also, in CSGO, you need at least a force of 350 to even move a player from the ground :D

Code: [Select]
@humanAlliance.skill
class Teleport(Skill):
name = 'Teleport'
description = 'Ultimate: Teleport'
max_level = 4
cost = 2
required_level = 5

@cooldownf(lambda self, **eargs: 20 - self.level * 2)
def on_ultimate(self, player, **eargs):
## Calculate the force.
force = 350 + self.level * 50
## Function to obtain player view coordinates.
vector = player.get_view_coordinates()
push(player, (vector - player.location) * force)

I will post a version I made a while ago later when I have had some time to come to a conclusion of what to do about the invisibility. May give you something to look at to get familiar with the SourcePython modules and functions as well. Sorry about pointing out so many problems, but only way people learn is from mistakes :D

Offline Predz

  • Moderator
  • Level 7 Expert
  • *****
  • Posts: 551
  • Country: england
  • Warcraft: GO Co-Lead Programmer
Re: [Hero Wars] Official
« Reply #64 on: March 13, 2015, 06:16:52 PM »
If you want to know what I was on about the Invisibility problem, check here. http://hero-wars.com/index.php?topic=8.0

Offline Masteraviv13

  • Level 7 Expert
  • *****
  • Posts: 462
  • Country: 00
  • Python remains a bitch, though I will never quit
    • <a href="http://alwaysfunkilling.com" title="An evolution of modern combat">Always Fun Killing</a>]<a href="http://alwaysfunkilling.com" title="An evolution of modern combat">Always Fun Killing<
Re: [Hero Wars] Official
« Reply #65 on: March 13, 2015, 06:41:54 PM »
Ahha cool,

I'll take a look at it tomorrow ^^
And yeah like I said before, I made this quick inbetween 2 hours of lessons at college :)




Offline Kamilot

  • Level 0 Beginner
  • Posts: 10
Re: [Hero Wars] Official
« Reply #66 on: March 14, 2015, 08:15:11 PM »
If you want to know what I was on about the Invisibility problem, check here. http://hero-wars.com/index.php?topic=8.0

I've read that thread on invisibility. Are you saying it's impossible to do partial invis in CSGO? Cause I've played on this server

46.174.53.183:27015

This is some kind wcs (also it's in russian)
And they have Human Alliance and it has partial invisibilty

Maybe you can contact them on that, here is the site of their server http://www.project410.ru/forum/

Offline Predz

  • Moderator
  • Level 7 Expert
  • *****
  • Posts: 551
  • Country: england
  • Warcraft: GO Co-Lead Programmer
Re: [Hero Wars] Official
« Reply #67 on: March 14, 2015, 10:14:12 PM »
Hey Kamilot,

Yeh I just joined the server and checked it out. Very nice and clean, but the server uses custom models to display partial invisibility. So I am very surprised someone went to this amount of difficulty for this, but am extremely happy.

I may try to talk to them to see if they are happy that I use the models for Hero Wars :D

Offline Mahi

  • Watchdog
  • Level 0 Beginner
  • *****
  • Posts: 19
  • Country: fi
  • Warcraft: GO lead programmer
Re: [Hero Wars] Official
« Reply #68 on: March 15, 2015, 10:36:19 AM »
Invisibility used to work in CS:GO a while back, until they updated the models (or what ever they updated).
Adding custom models with alpha layers works just fine, but it requires the clients to download huge amount of models, which is something we'd rather avoid in the official release.
Also, any client with custom client sided models would not be affected by the invisibility. (afaik, correct me if I'm wrong?)

I think our best shot would be to try to get Valve's attention and get them to revert the update that removed invisibility.
I suppose custom models is better than nothing, but it's not a final solution to the problem.
« Last Edit: March 15, 2015, 10:39:32 AM by Mahi »

Offline LundhZ

  • Level 0 Beginner
  • Posts: 1
  • <3 WCS :)
Re: [Hero Wars] Official
« Reply #69 on: September 23, 2015, 10:52:10 PM »
Excuse me for writing on this topic as a new user and all, i don't know the etiquette around here.

But is this project scrapped/discontinued? I have not seen a single Hero Wars server, and would very much like to see this in action, i cannot find any decent WC:S or Hero Wars servers, through normal community browsing and gametracker.

I remember the days of ?WwT? servers on CS:S, and would be very pleased to see a server like that come up in CS:GO now that the CS:S community has died down quite dramatically.

Thanks Lundh

Offline Teller

  • Level 7 Expert
  • *****
  • Posts: 265
  • Country: dk
  • #FIXYOURRACE
Re: [Hero Wars] Official
« Reply #70 on: September 26, 2015, 11:09:17 AM »
Excuse me for writing on this topic as a new user and all, i don't know the etiquette around here.

But is this project scrapped/discontinued? I have not seen a single Hero Wars server, and would very much like to see this in action, i cannot find any decent WC:S or Hero Wars servers, through normal community browsing and gametracker.

I remember the days of ?WwT? servers on CS:S, and would be very pleased to see a server like that come up in CS:GO now that the CS:S community has died down quite dramatically.

Thanks Lundh

http://hero-wars.com/

This is the best wcs server i've ever seen.
Check it out ! http://warcraft-source.com/board/index.php?topic=16799.0

Offline ReggiePer

  • Level 0 Beginner
  • Posts: 1
  • <3 WCS :)
Re: [Hero Wars] Official
« Reply #71 on: June 26, 2017, 10:17:04 AM »
I still play Hero Wars!