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

Members Online

»
0 Active | 8 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

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: aim down the sights var
webber17
General Member
Since: Jul 28, 2006
Posts: 223
Last: Aug 31, 2007
[view latest posts]
Level 4
Category: CoD2 Scripting
Posted: Friday, Aug. 31, 2007 06:32 pm
I'm trying to find out if I'm ADS or at HIP. What would be the script line to find out if ADS is true?
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD2 Scripting
Posted: Friday, Aug. 31, 2007 07:19 pm
I'm not sure if you can actually tell if the player is aiming or shooting from the hip, to be honest.
Share |
webber17
General Member
Since: Jul 28, 2006
Posts: 223
Last: Aug 31, 2007
[view latest posts]
Level 4
Category: CoD2 Scripting
Posted: Friday, Aug. 31, 2007 07:23 pm
well heres a quote from a cod1 scripting forum

"From the Call of Duty Script Documentation coming with the Edit-Tools:


playerads()

Module:
Player

Summary:
Return the player's weapon position fraction.

Call this function on:
The player

Example:

while(self playerads()>0.3)...;

Minimum Number of arguments: 0
Number of optional arguments: 0
"

idk if its the same for cod2 let me know what you think...
heres the link to the topic.
http://www.iwnation.com/Forums/lofiversion/index.php/t18748.html

edited on Aug. 31, 2007 03:24 pm by webber17
Share |
toggle
General Member
Since: Dec 11, 2004
Posts: 27
Last: Feb 23, 2008
[view latest posts]
Level 2
Category: CoD2 Scripting
Posted: Friday, Aug. 31, 2007 09:02 pm
Code:
isADS()
{

    if(self playerads() == 1)
    ads = true;
    else
    ads = false;
    return ads;
}


Works fine for cod 2
Share |
Webber105
General Member
Since: Aug 2, 2007
Posts: 23
Last: Jul 22, 2008
[view latest posts]
Level 1
Category: CoD2 Scripting
Posted: Friday, Aug. 31, 2007 09:14 pm
thanks man works great now[thumbs_up]
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

»