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

Members Online

»
0 Active | 51 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: Fastrope
Pablo_Abruzzi
General Member
Since: Jan 30, 2010
Posts: 93
Last: Aug 10, 2011
[view latest posts]
Level 3
Category: CoD4 Scripting
Posted: Friday, Nov. 5, 2010 03:40 pm
Hello

I want add fastrope to my mission with blackhawk. There is the code I tryed to use, I also write, what is wrong and what is good.

Code:
#include common_scripts\utility;        

#include maps\_utility;

#include maps\_vehicle;

#include maps\mo_fastrope;


main()
{
//maps\mo_fastrope::main();
maps\_blackhawk::main( "vehicle_blackhawk" );  
maps\_load::main();
maps\lina_anim::main();  

//---------------------ADD PLAYER TO VEHICLE--------------------------------

create_vehicle_from_spawngroup_and_gopath( 0 );

waittillframeend;

vehicle = getent("unit1", "targetname"); 

level.player disableweapons(); // Takes away all the players weapons
level.player allowcrouch(false); // Player is not allowed to crouch
level.player allowprone (false); // Player is not allowed to prone

level.seat = spawn("script_model",vehicle.origin);
level.seat setmodel("tag_origin");
level.seat linkto(vehicle,"tag_guy0",(0,0,-25),(0,0,15)); 

level.player PlayerLinkToDelta( level.seat, "tag_origin", 0,50,50,50,50,0,"false" ); 

//---------------------------PLAYER UNLOAD--------------------------------

unload_node = getstruct("auto1", "targetname");     //OK
assert( isdefined( unload_node ) );          //OK
wait 0.01;              //WORKING xD
unload_node waittill( "trigger");                              //WORKING, DON'T CHANGE!! WHEN I ADD ANOTHER COMMAND THAT WAS WORKING WHEN BLACK HIT THIS STUCT
//level.player thread maps\_mo_fastrope::fastrope_player_think();   //THIS COMMAND DOESN'T WORK, AND THIS IS THE PROBLEM
}


Please can anyone help me with this.

Share |
cutter-III
General Member
Since: Jun 4, 2009
Posts: 2
Last: Nov 5, 2010
[view latest posts]
Level 0
Category: CoD4 Scripting
Posted: Friday, Nov. 5, 2010 11:10 pm
Maybe this will help:

Video

Mapsource





Share |
Pablo_Abruzzi
General Member
Since: Jan 30, 2010
Posts: 93
Last: Aug 10, 2011
[view latest posts]
Level 3
Category: CoD4 Scripting
Posted: Saturday, Nov. 6, 2010 05:10 pm
Yeah It helped me. Thanks [thumbs_up]
But where you find map source like that? It's awesome to learn. I change some stuffs and it works. I also write tutorial, but when I try add it it's empty don't know why [duh]
Share |
voidsource
General Member
Since: May 5, 2007
Posts: 1513
Last: Sep 1, 2013
[view latest posts]
Level 8
Category: CoD4 Scripting
Posted: Saturday, Nov. 6, 2010 06:00 pm
the "mo_fastrope" should have everything in there. I haven't tested it but ive seen through it and it should work.
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

»