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

Members Online

»
0 Active | 7 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 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
Page
Previous Page
subscribe
Author Topic: Script error
guedoe
General Member
Since: Sep 1, 2012
Posts: 18
Last: Jan 4, 2013
[view latest posts]
Level 1
Category: CoD4 Scripting
Posted: Sunday, Sep. 2, 2012 07:20 pm
attachment: application(10.5Kb)
Wow, thanks for the tip, this is the error.
self thread maps\mp\_havock::spawnhavock( self, startnode, self.pers["team"] );
I have attached our _havock.gsc if you would like to help correct it.
Share |
Tally
General Member
Since: Apr 21, 2005
Posts: 819
Last: Oct 26, 2012
[view latest posts]
Level 7
Category: CoD4 Scripting
Posted: Sunday, Sep. 2, 2012 07:39 pm
In your _havock.gsc file, change this:

Code:
// spawn helicopter at a start node and monitors it
heli_think( owner, startnode, heli_team, requiredDeathCount )


to this:

Code:
// spawn havock at a start node and monitors it
spawnhavock( owner, startnode, heli_team, requiredDeathCount )
Share |
guedoe
General Member
Since: Sep 1, 2012
Posts: 18
Last: Jan 4, 2013
[view latest posts]
Level 1
Category: CoD4 Scripting
Posted: Sunday, Sep. 2, 2012 07:59 pm
Awesome, got past that error, and of coarse, we ran into some more.

******* script runtime error *******
unknown item 'havock_mp': (file 'maps/mp/_havock.gsc', line 16)
precacheitem( "havock_mp" );
*
Error: called from:
(file 'maps/mp/_havock.gsc', line 132)
precachehelicopter( "vehicle_apache2" );
*
Error: called from:
(file 'maps/mp/gametypes/_hardpoints.gsc', line 329)
thread maps\mp\_havock::init();

basically i copied the helo gsc and edited it for the havock, not even sure if that was the best way to go :/
Share |
Tally
General Member
Since: Apr 21, 2005
Posts: 819
Last: Oct 26, 2012
[view latest posts]
Level 7
Category: CoD4 Scripting
Posted: Sunday, Sep. 2, 2012 08:52 pm
change "havock_mp" to "cobra_20mm_mp". It is the weapon file that the code uses to fire the side guns.

I'm feeling that this is a bit out of your depth. Doing stuff like this is quite advanced, and if you are just a novice, I feel you will only keep coming back here posting loads of posts with loads of errors expecting a fix. I personally don't work like that, as it is effectively asking me to write the whole thing for you. I would therefore suggest that you try to fix your problems before posting each time. That way you will learn, and experience one of the great rewards of modding - overcoming challenges.
Share |
guedoe
General Member
Since: Sep 1, 2012
Posts: 18
Last: Jan 4, 2013
[view latest posts]
Level 1
Category: CoD4 Scripting
Posted: Sunday, Sep. 2, 2012 09:57 pm
Sure thing, thanks for the help, and advise :)
Share |
Restricted Access Topic is Locked
Page
Previous Page
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

»