| Author |
Topic: teleporting |
| _INSANE_ |
 |
General Member Since: Nov 7, 2008 Posts: 352 Last: Jul 10, 2011 [view latest posts] |
|
|
 |
|
Category: CoDWW Scripting Posted: Thursday, Feb. 5, 2009 01:05 pm |
 |
Quote: Well huh. It thinks that less than sign is the start of some html code and cuts off the rest. That's the problem.
I'll have to look into a fix for that. Thanks
That sounds like the problem, Foyleman ![[rocking]](images/BBCode/smilies/rocking.gif) |
 |
|
|
| *UWS*ThisGuy |
General Member Since: Jul 31, 2008 Posts: 215 Last: Jan 8, 2012 [view latest posts] |
|
|
|
Category: CoDWW Scripting Posted: Thursday, Feb. 5, 2009 01:19 pm |
 |
Insane.....Thank you for posting that for my understanding.....unfortunatly.....I have no clue. lol
I'm kinda new to all this so, I'll try and learn some basics and along the way post any questions.
Thanks. ![[biggrin]](images/BBCode/smilies/biggrin.gif) |
 |
|
|
| _INSANE_ |
 |
General Member Since: Nov 7, 2008 Posts: 352 Last: Jul 10, 2011 [view latest posts] |
|
|
 |
|
Category: CoDWW Scripting Posted: Thursday, Feb. 5, 2009 01:38 pm |
 |
![[lol]](images/BBCode/smilies/lol.gif) Lol.
No problem. Just read some stock scripts... Simple ones.. and understand what they mean, and just go from there..
Start writing your own small scripts .. Just simple ones..
Then its just trial and error after that. ![[crazy]](images/BBCode/smilies/crazy.gif)
Make them more complex as you learn more.
And then after that, you start to get the hang of it. You go through alot of questions, alot of forum posting, but in the end you'll be on your own if you keep it up.
edited on Feb. 5, 2009 08:38 am by INSANE{H|S} |
 |
|
|
| Zambesi |
General Member Since: Jun 12, 2009 Posts: 12 Last: Sep 20, 2009 [view latest posts] |
|
|
|
Category: CoDWW Scripting Posted: Saturday, Aug. 29, 2009 02:12 pm |
 |
hey guys, i am stuck on this same teleport thingy heres my error:
ERROR: Could not open 'mapsmpteleportenter.gsc'
failed loading 'mapsmpteleportenter.gsc' of type 'rawfile' found in source file '../zone_source/mp_mass_pyramids.csv'
somehow launcher dont create .gsc files, not for "yourmapname.gsc" not for teleport???, so i end up having to notepad edit this by myself and then save as .gsc, but i do know that i know nothing about scripting, i followd the teleport script tutorial to the letter, and even put the spaces in as suggested previously, but that still brings me up with the same error, any ideas or any more info that any of you clever folk need i will submit
gretaly appreciated thid forum and alot of the tutorials found on this great site |
 |
|
|
| *UWS*ThisGuy |
General Member Since: Jul 31, 2008 Posts: 215 Last: Jan 8, 2012 [view latest posts] |
|
|
|
Category: CoDWW Scripting Posted: Saturday, Aug. 29, 2009 02:48 pm |
 |
assuming you've placed all the right scripts in radiant
create a .gsc file with the name _teleporter with the teleport code inside.
Quote: main()
{
entTransporter = getentarray("enter","targetname");
if(isdefined(entTransporter))
{
for(lp=0;lp
entTransporter[lp] thread Transporter();
}
}
Transporter()
{
while(true)
{
self waittill("trigger",other);
entTarget = getent(self.target, "targetname");
wait(0.10);
other setorigin(entTarget.origin);
other setplayerangles(entTarget.angles);
wait(0.10);
}
}
this goes in raw/maps/mp folder
add this line to your maps main .gsc file:
maps\mp\_teleport::main();
then add this line to you zone file:
rawfile,maps/mp/_teleport.gsc
ps if ya need help with radiant let me know |
 |
|
|
| Zambesi |
General Member Since: Jun 12, 2009 Posts: 12 Last: Sep 20, 2009 [view latest posts] |
|
|
|
|
| _INSANE_ |
 |
General Member Since: Nov 7, 2008 Posts: 352 Last: Jul 10, 2011 [view latest posts] |
|
|
 |
|
|
| Zambesi |
General Member Since: Jun 12, 2009 Posts: 12 Last: Sep 20, 2009 [view latest posts] |
|
|
|
|
| Zambesi |
General Member Since: Jun 12, 2009 Posts: 12 Last: Sep 20, 2009 [view latest posts] |
|
|
|
Category: CoDWW Scripting Posted: Monday, Aug. 31, 2009 04:42 am |
 |
it seems that if i manualy make a maymapname.GSC file and place it in raw/maps/mpand then compile i get this error after i compile and or fastfile compile when it setting up the game
this is mymap GSC ....:
main()
{
//maps\mp\mp_mass_pyramids_fx::main();
maps\mp\_load::main();
// If the team nationalites change in this file,
// you must update the team nationality in the level's csc file as well!
game["allies"] = "marines";
game["axis"] = "japanese";
game["attackers"] = "axis";
game["defenders"] = "allies";
game["allies_soldiertype"] = "pacific";
game["axis_soldiertype"] = "pacific";
}
maps\mp\_teleport::main();
allthough i did the code from INSANE i stille get that bad syntax error
and this is my zone file
// NOTE: If you add a comment, put a space after the double forward slash or you will get issues
col_map_mp,maps/mp/mp_mass_pyramids.d3dbsp
impactfx,mp_mass_pyramids
sound,common,mp_mass_pyramids,!all_mp
sound,generic,mp_mass_pyramids,!all_mp
sound,voiceovers,mp_mass_pyramids,!all_mp
sound,multiplayer,mp_mass_pyramids,!all_mp
character,char_usa_raider_player_rifle
character,char_usa_raider_player_cqb
character,char_usa_raider_player_assault
character,char_usa_raider_player_lmg
character,char_usa_raider_player_smg
character,char_jap_impinf_player_smg
character,char_jap_impinf_player_rifle
character,char_jap_impinf_player_lmg
character,char_jap_impinf_player_cqb
character,char_jap_impinf_player_assault
// model view hand,
xmodel,viewmodel_usa_marine_arms
xmodel,viewmodel_usa_raider_arms
xmodel,viewmodel_usa_marine_rolledup_arms
xmodel,viewmodel_ger_waffen_rolledup_arms
xmodel,viewmodel_ger_wermacht_arms
xmodel,viewmodel_jap_infantry_arms
xmodel,viewmodel_jap_infantry_rolledup_arms
xmodel,viewmodel_rus_guard_padded_arms
xmodel,viewmodel_rus_guard_arms
rawfile,maps/mp/_teleport.gsc
hope this help you to help me lol txs in advance
edited on Aug. 31, 2009 12:44 am by Zambesi
edited on Aug. 31, 2009 12:54 am by Zambesi |
 |
|
|
| arachnofang |
 |
General Member Since: Nov 16, 2008 Posts: 505 Last: Sep 9, 2012 [view latest posts] |
|
|
|
Category: CoDWW Scripting Posted: Monday, Aug. 31, 2009 06:48 am |
 |
Hi mate!
This might be your problem.
main()
{
//maps\mp\mp_mass_pyramids_fx::main();
maps\mp\_load::main();
// If the team nationalites change in this file,
// you must update the team nationality in the level's csc file as well!
game["allies"] = "marines";
game["axis"] = "japanese";
game["attackers"] = "axis";
game["defenders"] = "allies";
game["allies_soldiertype"] = "pacific";
game["axis_soldiertype"] = "pacific";
}
maps\mp\_teleport::main();
Try this.....
main()
{
//maps\mp\mp_mass_pyramids_fx::main();
maps\mp\_interactive_objects::init();
maps\mp\_load::main();
maps\mp\_teleport::main();
// If the team nationalites change in this file,
// you must update the team nationality in the level's csc file as well!
game["allies"] = "marines";
game["axis"] = "japanese";
game["attackers"] = "axis";
game["defenders"] = "allies";
game["allies_soldiertype"] = "pacific";
game["axis_soldiertype"] = "pacific";
}
and your zone file is missing a couple of lines.....
// NOTE: If you add a comment, put a space after the double forward slash or you will get issues
col_map_mp,maps/mp/mp_mass_pyramids.d3dbsp
impactfx,mp_mass_pyramids
rawfile,maps/mp/mp_mass_pyramids.gsc
// rawfile,maps\mp\mp_mass_pyramids_fx.gsc
rawfile,maps/mp/_interactive_objects.gsc
rawfile,maps/mp/_teleport.gsc
sound,common,mp_mass_pyramids,!all_mp
sound,generic,mp_mass_pyramids,!all_mp
sound,voiceovers,mp_mass_pyramids,!all_mp
sound,multiplayer,mp_mass_pyramids,!all_mp
character,char_usa_raider_player_rifle
character,char_usa_raider_player_cqb
character,char_usa_raider_player_assault
character,char_usa_raider_player_lmg
character,char_usa_raider_player_smg
character,char_jap_impinf_player_smg
character,char_jap_impinf_player_rifle
character,char_jap_impinf_player_lmg
character,char_jap_impinf_player_cqb
character,char_jap_impinf_player_assault
// model view hand,
xmodel,skybox_nightfire
xmodel,viewmodel_usa_marine_arms
xmodel,viewmodel_usa_raider_arms
xmodel,viewmodel_usa_marine_rolledup_arms
xmodel,viewmodel_ger_waffen_rolledup_arms
xmodel,viewmodel_ger_wermacht_arms
xmodel,viewmodel_jap_infantry_arms
xmodel,viewmodel_jap_infantry_rolledup_arms
xmodel,viewmodel_rus_guard_padded_arms
xmodel,viewmodel_rus_guard_arms
You mainly need this line maps\mp\_interactive_objects::init(); for tanks, but i'm assuming you would need it for teleporting as well as it is a interaction, you will also need to change xmodel,skybox_nightfire to which-ever one it is you are using.
Hope this helps,
Ian.
edited on Aug. 31, 2009 03:15 am by arachnofang |
|
|
|
|
|
mp_TempleCall of Duty: Mods: Multiplayer (624.12Kb)
|