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:06:07 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: merge the forwards!  (Read 159 times)
Ownz
Developer
Administrator
Hero Member
*****
Posts: 2045



View Profile WWW Email
« on: November 08, 2011, 10:26:52 AM »

//when player dies, fires only in war3 mode
forward OnWar3EventDeath(victim,attacker);

//New forward that replaces OnWar3EventDeath to add showing the deathrace
forward OnW3EventDeath(victim,attacker,deathrace);

//very generic damage event
forward OnWar3EventPostHurt(victim,attacker,dmgamount);

//Adds War3 damage bool, preventing the need for constant W3IsDamageWarcraft() lookups
forward OnW3EventPostHurt(victim,attacker,dmgamount,bool:isWarcraft);


forwards should be backwards compatible. i don't want two of these to exist, so just change the interface and the existing forwards to:

forward OnWar3EventDeath(victim,attacker,deathrace);
forward OnWar3EventPostHurt(victim,attacker,dmgamount,bool:isWarcraft);

and if old races fail with the new forwards, i will force an interface change, thats more consistent than having two redundant forwards
Logged

DarkEnergy
Ownz
Developer
Administrator
Hero Member
*****
Posts: 2045



View Profile WWW Email
« Reply #1 on: November 08, 2011, 10:29:50 AM »

ill make these changes tonight if svn doesnt have these changes.
Logged

DarkEnergy
Necavi
Full Member
***
Posts: 223


View Profile
« Reply #2 on: November 08, 2011, 04:49:50 PM »

Sounds good, I was just trying to prevent the need for a recompile Tongue
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!