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, 10:20:47 AM *
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: Adjusting current race values?  (Read 290 times)
Galanth
Newbie
*
Posts: 5


View Profile Email
« on: September 07, 2011, 04:24:36 PM »

For some of the races I have figured out how to adjust their abilities and add them in my war3source.cfg file.  But alot of the races they dont have options to adjust their abilities. 

For example I would like my orc Lightning to go farther than 25 feet or for the undead to do more damage when they explode.  But in the cvarlist there is no option to adjust it, only the re-use timer.

Can someone please tell me how I can adjust their abilities or direct me to another forum where this is talked about since I could not find it.
Logged
Vulpone
Full Member
***
Posts: 140



View Profile Email
« Reply #1 on: September 08, 2011, 12:28:21 AM »

Just lost my entire post due to a system failure. Yay for windows.

Anyways, if you cannot change them as a cvar, you gotta edit the race to your liking. Look for the corresponding .sp file and you're good to go.

e.g. Orc:
"War3Source_003_OrcishHorde"

Line 37 new Float:ChainDistance[5]={0.0,150.0,200.0,250.0,300.0};

in layman's terms, this array handles the distance of the ultimate (not by itself, mind you)..
So basically, you can go nuts with the elements; not the first one, though.

The author chose to divide the distance by 10 to print a value in feet (the above one should be some kind of units). So, while 30 ft. may sound little, 300 units is actually NOT that little.

Feel free to use Hammer Editor to discover how big 300 units are...


If you wanna dig deeper* and even edit the race as such, or even create one yourself, feel free to read some threads here: http://war3source.com/index.php?board=7.0

*Assuming you know either C, C++ or you're a quick learner.
Logged

Sapere aude!
Galanth
Newbie
*
Posts: 5


View Profile Email
« Reply #2 on: September 08, 2011, 09:39:41 AM »

yeah I had a feeling I would have to do that.  And I even tried it but for some reason the compile button comes up with an error.  Guess I'll have to keep messing with it until it works.  Thanks for responding.

Is there a way to create cvars for the races so we can just adjust them in the server without having to compile the races?
Logged
Vulpone
Full Member
***
Posts: 140



View Profile Email
« Reply #3 on: September 08, 2011, 11:19:06 AM »

yeah I had a feeling I would have to do that.  And I even tried it but for some reason the compile button comes up with an error.  Guess I'll have to keep messing with it until it works.  Thanks for responding.

Is there a way to create cvars for the races so we can just adjust them in the server without having to compile the races?

Yes.

And here's how.

The orcish actually uses one, see:
Code:
new Handle:ultCooldownCvar;
ultCooldownCvar=CreateConVar("war3_orc_chain_cooldown","20","Cooldown time for chain lightning.");

new Float:cooldown=GetConVarFloat(ultCooldownCvar);
War3_CooldownMGR(client,cooldown,thisRaceID,ULT_LIGHTNING,_,_,_,"Chain Lightning");

These are the lines that are correspond with the ultimate cooldown..

As a matter of fact, there is a cvar to change Orc ultimate, it's "war3_orc_chain_cooldown"..
So, yeah.

If the coder did not implement the cvar, you're screwed. Unless you learn to edit and code races..

I'd tell you more, but since you're no coder, I don't think it'd be easy to code..

But yeah, just look at OrcishHorde or ask if you have further questions..
« Last Edit: September 09, 2011, 08:14:26 AM by Vulpone » Logged

Sapere aude!
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!