Welcome New User Home | Forums | Register | Login | Larger Font
Main-Menu
Home
Login
Register
Add Download
Add News
Add Tutorial *
Forums

Advertise
Affiliate Store US *
Affiliate Store UK *
Affiliate Store CA *
Angry Letter Generator
Avatar Upload
Calendar of Games
Contact
Downloads
FAQs
Forums
Member List
Member Projects
News
News Grabber *
Policy
Polls
Private Messages
Reviews
Screenshot Gallery
Search
Servers - Game
Store - Shirts *
Subscribe
Topics
Tutorials
Weblinks
Tutorials
CoD Mapping
CoDUO Mapping
CoD2 Mapping
CoD4 Mapping
CoD FAQs
HL2 Mapping
HL2 FAQs
SOF1 Mapping
Crysis Mapping
Q4 Mapping
Doom 3 Mapping
Doom 3 FAQs
UT2K3 Mapping
SOF2 Mapping
SOF2 FAQs

Lightray Modeling
General Modeling
General Modding
Adobe Photoshop
Common Mapping Errors

Readme.txt Generator
Members-Online
newtonboy [Forum]
jasonthdar... [Forum]
R4R44VIS [Forum]

3 Members and 10 Guests
Chat MODSonline
0 People Now Chatting
MODSOnline TeamSpeak

download TeamSpeak

In-The-News
Sunday, Jul. 20th
MODSonair 137 LIVE
Friday, Jul. 18th
MODSonair Episode 136
Thursday, Jul. 17th
E3 2008: Daily Recap
Monday, Jul. 14th
E3 2008 Latest News
Sunday, Jul. 13th
MODSonair 136 LIVE
Latest Poll
Want a MODSonline Wiki for various games?
I think a Wiki would be a great addition to MODSonline. 75.59%
I could see a benefit of a Wiki. 4.72%
I think it would take away from the community. 3.94%
Wiki sites are never good. 3.94%
Wiki... isn't that Buck Roger's robot slave? 11.81%
Read More...
10 comments

Newsletter
Name:
Email:
Newsletter Archives
Your Membership
User Name:
Password:
Register.
In The Forums
How to play background music?
CoD 4 Single Pla.. Posts: (15) Views: (248) by KD
cod2 radiant textures problem, help ??
CoD 2 Level Desi.. Posts: (10) Views: (84) by mathias991
CoD4 Kar98K model
CoD 4 Scripting.. Posts: (12) Views: (185) by zeroy
Map Running Issue
CoD 4 Level Desi.. Posts: (5) Views: (34) by KillerCrazzy
Art of War Central Quake 4 Mods for Dummies
Typhoon Servers
Forums
MODSonline.com 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.
Jump To:
Forum: All Forums : Call of Duty 4
Category: CoD 4 Single Player
Call of Duty 4 single player mapping, scripting and everything single player.
Moderators: foyleman, rEdrUmMDK, Foxhound, Rasta, StrYdeR, The_Caretaker, batistablr, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Restricted Access
Page
Next Page
subscribe
Author Topic: CoD 4 Vehicle Scipt
Sgt.Jack
General Member
Since: May 1, 2006
Posts: 39
Last: Jun 12, 2008
[view latest posts]
Level 2
Category: CoD 4 Single Player
Posted: Friday, Feb. 22, 2008 08:49 am
Hello People

I have a Problem with the SP Vehicle Scripts i can not use the scripts from CoD 2 !!
NovemberDobby
General Member
Since: Sep 17, 2006
Posts: 1606
Last: Jul 19, 2008
[view latest posts]
Level 8
Category: CoD 4 Single Player
Posted: Friday, Feb. 22, 2008 08:53 am
Well I should hope so, they're two different games. What exactly happens when you try?
Sgt.Jack
General Member
Since: May 1, 2006
Posts: 39
Last: Jun 12, 2008
[view latest posts]
Level 2
Category: CoD 4 Single Player
Posted: Friday, Feb. 22, 2008 09:11 am
Ok here a Pic

Screenshot
NovemberDobby
General Member
Since: Sep 17, 2006
Posts: 1606
Last: Jul 19, 2008
[view latest posts]
Level 8
Category: CoD 4 Single Player
Posted: Friday, Feb. 22, 2008 09:34 am
Ok, well add:

maps\m1a1::main("vehicle_m1a1_abrams");

to your map script, and see what happens. You'll also need a CSV line:

rawfile,maps\m1a1.gsc
Sgt.Jack
General Member
Since: May 1, 2006
Posts: 39
Last: Jun 12, 2008
[view latest posts]
Level 2
Category: CoD 4 Single Player
Posted: Friday, Feb. 22, 2008 10:10 am
Ok you mean

CSV Line this

rawfile,maps/_m1a1.gsc and not this rawfile,maps\m1a1.gsc

and this have i normaly in the script

maps\_m1a1::main("vehicle_m1a1_abrams");

and is the same Error
Sparks.
General Member
Since: Feb 27, 2004
Posts: 830
Last: Jul 19, 2008
[view latest posts]
Level 7
Category: CoD 4 Single Player
Posted: Saturday, Feb. 23, 2008 12:11 am
Did you try running the game without developer_script?
I have my vehicles working fine in my map, but when I run the game with developer_script I get that error too even though I have that line in the GSC.
Sgt.Jack
General Member
Since: May 1, 2006
Posts: 39
Last: Jun 12, 2008
[view latest posts]
Level 2
Category: CoD 4 Single Player
Posted: Saturday, Feb. 23, 2008 06:34 am
I have test with developer_script and without developer_script and have the same problem.

Can you post you gsc ?
Sparks.
General Member
Since: Feb 27, 2004
Posts: 830
Last: Jul 19, 2008
[view latest posts]
Level 7
Category: CoD 4 Single Player
Posted: Tuesday, Feb. 26, 2008 01:33 pm
You don't need to script it. That's the hard way, there's an easier way to do all that without scripting. :)

Make your tank and a trigger to trigger the tank.
Select both, and press SHIFT+V to go into the vehicle GUI in Radiant.
Select Spawn, it'll close the GUI, open it again and select move, GUI will close.
Make the tank target the first vehicle node.

If you want the vehicle to delete itself at the end of the path, you can make a trigger and select the tank and trigger and select Delete in the vehicle GUI. Make sure that specific trigger has Vehicle checked in the entity window.

Keep your vehicle nodes, if you want to remake them, just use the GUI too (right side options).

Make sure the first vehicle node has StartNode checked in the entity window. Make sure all the vehicle nodes have speed and lookahead KVPs (key value pairs).

Also, maps\_m1a1::main( "vehicle_m1a1_abrams" );
should go before maps\_load.

You won't need the m1a1_setup() function anymore, it's all done through the vehicle KVPs. :)

Note: You also need to sync up a cullmap for the vehicle otherwise you'll get an error if you run developer_script, and you'll be able to walk through the tank.
I haven't figured out yet how to have the cullmaps to get associated with the vehicles, maybe someone else knows?

edited on Feb. 26, 2008 01:35 pm by Sparks.
Sgt.Jack
General Member
Since: May 1, 2006
Posts: 39
Last: Jun 12, 2008
[view latest posts]
Level 2
Category: CoD 4 Single Player
Posted: Wednesday, Feb. 27, 2008 11:25 am
Thx Sparks

The Map work but onlye the tanks weels run not the tank

I use an script -> vehicle is this right ?

And what mean the game with this

Screen



edited on Feb. 27, 2008 11:29 am by Sgt.Jack
Boltriflemaster
General Member
Since: Aug 21, 2006
Posts: 128
Last: Jun 29, 2008
[view latest posts]
Level 4
Category: CoD 4 Single Player
Posted: Wednesday, Feb. 27, 2008 05:45 pm
Sparks, ive got a pretty good idea as to how to get vehicle collision. While reading though heli scripts, i found this:

Apparently, CoD4 devs create the collmap by just using some collision brushes in radiant, the linking it to the vehicle. To do this, they have to link to the the models "tag_origin" at point 0 0 0. Here is the example in which case the vehicle is a blackhawk.

Code:


that should setup your basic blackhawk, for collmap its another 2 simple lines:

Code:


Basically what you have here is having the script just call on the blackhawk collision mesh, just like any other collmap, but then using the "linkto" command, it links it to the blackhawks origin, which from what i remember is a tag you enter while creating the model, directly in the center of the model. This should allign it directly with the body of the vehicle, and it should follow it when it moves via script/nodes.

Im not sure if this works, but it seems like it should.
Restricted Access Restricted Access
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty 4 : CoD 4 Single Player
All logos and trademarks and information in this site are property of MODSonline LLC © 2008.
The comments are property of their posters.
RSS news feeds for MODSonline.com can be found News.php.
Intergi
Partners
XoXide
modbase.be
Battle for Europe COD2
Frag Universe
The Firing Box
Call of Duty Headquarters
My Topsites List
Websites4Clans
Ask About
Advertising
Friends
Volcano
Canada Kicks Ass Clan
After Life Gaming
Ask About
Advertising
Link to Us
MODSonair
View in iTunes
Please help us to raise in the ranks of podcasting and subscribe to our itunes feed using the link above.
MODSonair Releases
MODSonair Episode 136
MODSonair Episode 135
MODSonair Episode 134
MODSonair Episode 133
MODSonair Special CoD:WW Episode
Next Show
The next MODSonair show will air LIVE on:
07/27/2008 11:00 EDT

Time remaining:
Copyright © 2008 MODSonline
Tresware Content Management System Copyright © 2008 Tresware
Website Designed and Hosted   Tresware