Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 50 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 2
Category: CoD2 Scripting
Scripting and coding with Call of Duty 2.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Help accuracy stat
jardaxd
General Member
Since: Mar 17, 2012
Posts: 1
Last: Mar 31, 2012
[view latest posts]
Level 0
Category: CoD2 Scripting
Posted: Saturday, Mar. 31, 2012 07:46 pm
Hello, pls i have one big request. How to make hud accuracy stat or how to define miss shot for calculation.
Sorry Im newbie but pls help. Thx
Share |
Dobriy
General Member
Since: Mar 31, 2011
Posts: 96
Last: May 23, 2012
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Saturday, Mar. 31, 2012 08:56 pm
jardaxd writes...
Quote:
Hello, pls i have one big request. How to make hud accuracy stat or how to define miss shot for calculation.
Sorry Im newbie but pls help. Thx


I certainly understand that my English bad, but I didn't understand an essence of your question in general, in more detail please
Share |
IzNoGoD
General Member
Since: Nov 29, 2008
Posts: 694
Last: Nov 10, 2012
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Saturday, Mar. 31, 2012 09:09 pm
Re-use a bit of code from my cod4mod (for cod2) _button_monitor.gsc to count shots.

Then, hijack the callback_playerdamage to count the hits.

Divide hits by shots and you have your accuracy. Now put it in a hud and update it every shot/hit.
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 Scripting

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»