MODSonline
  Welcome Guest to MODSonline Home | Forums | Register | Login
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
Wiki *
Tutorials
CoD Mapping
CoDUO Mapping
CoD2 Mapping
CoD4 Mapping
CoDWW 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
JerryAtricks [Forum]
power2100 [Downl]
*UWS*KILL_... [Forum]
mrsilvers [Forum]

4 Members and 15 Guests
Chat MODSonline
0 People Now Chatting
MODSOnline TeamSpeak

download TeamSpeak

In-The-News
Monday, Dec. 1st
A message from foyleman
Sunday, Nov. 30th
MODSonair 156 Live
Friday, Nov. 28th
MODSonair Episode 155
Wednesday, Nov. 26th
MODSonair Forum Buttons
Monday, Nov. 24th
Holiday Gift Guide 2008 - PC
Latest Poll
Single or Multiplayer maps for World at War?
Single-Player 29.21%
Multiplayer 62.92%
WHAT!? The tools are out? 7.87%
Read More...
10 comments

Newsletter
Name:
Email:
Newsletter Archives
Your Membership
User Name:
Password:
Register.
In The Forums
[Prefab] Sliding doors
CoD:WW Level Des.. Posts: (2) Views: (42) by Watter
Fog Create_FX help
CoD:WW Level Des.. Posts: (5) Views: (58) by Sgt.Rampage
missing loadscreen
CoD:WW Level Des.. Posts: (1) Views: (14) by *UWS*KILL_ME_NOW
[Tutorial] Zombies Game Mode - EASY -
CoD:WW Level Des.. Posts: (96) Views: (812) by Papik
Art of War Central Half-Life 2 Mods for Dummies
CoDWW Download
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.
For more mapping and modding information, see our Wiki: MODSonWiki.com

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, Welshy
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: 1673
Last: Nov 30, 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: 1673
Last: Nov 30, 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
SparkyMcSparks
General Member
Since: Feb 27, 2004
Posts: 927
Last: Dec 4, 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 ?
SparkyMcSparks
General Member
Since: Feb 27, 2004
Posts: 927
Last: Dec 4, 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: 130
Last: Nov 7, 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:
blackhawk = spawn_vehicle_from_targetname( "rescue_blackhawk" );
	blackhawk_node = getent( "rescue_heli_org", "targetname" );



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

Code:
	blackhawk_collision = getent( "blackhawk_collision", "targetname" );
	blackhawk_collision linkto( blackhawk, "tag_origin", (0,0,0), (0,0,0) );


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 can be found News.php.
Art of War Central
Partners
Battle for Europe COD2
CODAddicts - Call of Duty News & Downloads
The Firing Box
modbase.be
XoXide
Frag Universe
Call of Duty Headquarters
Ask About
Advertising
Friends
Great Gamer
SOF2 Files and Downloads
MODS Reloaded
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 155
MODSonair Episode 154
MODSonair Episode 153
MODSonair Episode 152
MODSonair Episode 151
Next Show
The next MODSonair show will air LIVE on:
12/07/2008 12:00 EST

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