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

Members Online

»
0 Active | 52 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 4
Category: CoD4 Scripting
Scripting and coding with Call of Duty 4.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: three questions:
bazukist
General Member
Since: Jan 20, 2010
Posts: 32
Last: May 1, 2011
[view latest posts]
Level 2
Category: CoD4 Scripting
Posted: Monday, Apr. 19, 2010 04:00 pm
1) how to make custom script for weapon: like helicopter = _helicopter.gsc?

2)How to make choice between few things in menu?
like there is CHOICE_DVARYESNO?
Share |
tomv8
General Member
Since: Oct 5, 2008
Posts: 469
Last: Jul 14, 2010
[view latest posts]
Level 5
Category: CoD4 Scripting
Posted: Monday, Apr. 19, 2010 04:08 pm
wheres ur third question? :P. anyway for 1. just edit weapon file. no gsc
Share |
bazukist
General Member
Since: Jan 20, 2010
Posts: 32
Last: May 1, 2011
[view latest posts]
Level 2
Category: CoD4 Scripting
Posted: Thursday, Apr. 22, 2010 06:35 pm
you didn't get my question.
if i have script fr flyable helicopter, script name should be _helicopter.gsc
so how about airstrike? so it should be called _airstrike.gsc?[confused]
Share |
Samuel033
General Member
Since: Dec 10, 2009
Posts: 484
Last: Dec 25, 2015
[view latest posts]
Level 5
Category: CoD4 Scripting
Posted: Friday, Apr. 23, 2010 12:05 am
To be fair its an odd question. Call new script files anything you want. Make a new airstrike using a flying pig "_pigs.gsc". In some other file you reference it like all the others do. Or if its supposed to be constantly running you create a thread in some other file. Claymore watching threads are started in weapons.gsc. Helicopter streaks are started in hardpoints by calling the correct function from within it

thread maps\mp\_helicopters::somefunction();

your hardpoint.gsc call would be thread maps\mp\_pigs.gsc::startFlyingPig(owner, team, whatever);

Go through the weapons.gsc and hardpoints gsc scripts how they handle things.
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 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

»