Archived copy of war3source.com, the War3Source forum (2009–2020), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2011-08-12 (original capture). Forum · All archived topics · Wiki · Bug tracker · Blog

War3:Source
August 12, 2011, 02:37:31 AM *
Welcome, Guest. Please login or register.
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: Another weapon reload event  (Read 71 times)
M.A.C.A.B.R.A
Newbie
*
Posts: 6



View Profile
« on: August 04, 2011, 10:34:38 AM »

Hi there,
I am writing a race. Its skill should be activated when weapon is double scoped. And everything works but skill should be deactivated when the weapon is not zoomed. Weapon can become not zoomed in 3 cases:
1. Player clicks PPM (default)
2. Player pushes reload button
3. Ammo clip is empty and weapon reloading starts independently.

First 2 cases were easy to code but i have a problem with the third. Is there any event for reloading weapon when is starts independently ? I have not found enything.
Logged
Ownz
Developer
Administrator
Hero Member
*****
Posts: 1581



View Profile WWW Email
« Reply #1 on: August 04, 2011, 10:54:58 AM »

is there no zoom event?
Logged

DarkEnergy
M.A.C.A.B.R.A
Newbie
*
Posts: 6



View Profile
« Reply #2 on: August 04, 2011, 11:04:27 AM »

I was using "weapon_reload" and "weapon_zoom"  but the effect is not as I was expected.
Logged
Revan
Newbie
*
Posts: 44

WcsL


View Profile
« Reply #3 on: August 04, 2011, 01:15:50 PM »

Hm, weapon_reload should to that for you :S
but if you wan't a other way.. hmm..
you can hook weapon_fire and check ammo ?
Logged

M.A.C.A.B.R.A
Newbie
*
Posts: 6



View Profile
« Reply #4 on: August 04, 2011, 03:18:31 PM »

Yea thanks Revan. It works Smiley
Logged
Revan
Newbie
*
Posts: 44

WcsL


View Profile
« Reply #5 on: August 05, 2011, 02:45:01 AM »

Cool  Grin
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!