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

Members Online

»
0 Active | 86 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 2
Category: CoD2 Scripting
Scripting and coding with Call of Duty 2.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: help with script
diebydawg
General Member
Since: Feb 27, 2009
Posts: 16
Last: Jan 25, 2012
[view latest posts]
Level 1
Category: CoD2 Scripting
Posted: Thursday, Jan. 7, 2010 08:33 pm
k im pretty sure this is a script problem... one of my blow up doors does not appear on one of my gametypes (ctf) but works on the other two... you can still blow the door up thats not there but u cant see the before or after on just the second door... any ideas?
main()
{
thread exploporte();
thread exploporte1();
}


exploporte()
{
portebare = getent ("barreporte", "targetname");
ouvreporte = getent ("portbombouvre", "targetname");
bomdedeto = getent ("detobombe", "targetname");
portebombe = getent ("bombeporte", "targetname");
detopouss = getent ("poussdeto", "targetname");
porteav = getent ("avporte","targetname");
porteav2 = getent ("avporte2","targetname");
porteap = getent ("apporte","targetname");
porteap2 = getent ("apporte2","targetname");
porteap hide();
porteap2 hide();

while (1)
{
bomdedeto waittill ("trigger",other);
wait(0.1);
break;
}
detopouss playsound("UK_mcg_order_cover_detonation");
iprintlnbold ("^1RUN IDIOT!!!");
wait(2);
detopouss rotateyaw(-90, 0.2);
detopouss playsound("detone");

wait(0.3);

detopouss movez(-5, 0.2);
wait(0.2);
detopouss playsound("minefield_click");

wait(0.5);
ouvreporte delete();
bomdedeto delete();

originC = portebombe getorigin();

playfx(level._effect["porte_explosion"], originC);
portebombe playsound("building_explosion1");
porteap show();
porteap2 show();
portebombe delete();
radiusDamage(originC + (0, 0, 10), 800, 400, 80);
porteav delete();
porteav2 delete();
portebare delete();
}


exploporte1()
{
portebare5 = getent ("barreporte5", "targetname");
ouvreporte5 = getent ("portbombouvre5", "targetname");
bomdedeto5 = getent ("detobombe5", "targetname");
portebombe5 = getent ("bombeporte5", "targetname");
detopouss5 = getent ("poussdeto5", "targetname");
porteav7 = getent ("avporte5","targetname");
porteav8 = getent ("avporte6","targetname");
porteap5 = getent ("apporte5","targetname");
porteap6 = getent ("apporte6","targetname");
porteap5 hide();
porteap6 hide();

while (1)
{
bomdedeto5 waittill ("trigger",other);
wait(0.1);
break;
}
detopouss5 playsound("UK_mcg_order_cover_detonation");
iprintlnbold ("^1RUN IDIOT!!!");
wait(2);
detopouss5 rotateyaw(-90, 0.2);
detopouss5 playsound("detone");

wait(0.3);

detopouss5 movez(-5, 0.2);
wait(0.2);
detopouss5 playsound("minefield_click");

wait(0.5);
ouvreporte5 delete();
bomdedeto5 delete();

originC = portebombe5 getorigin();

playfx(level._effect["porte_explosion"], originC);
portebombe5 playsound("building_explosion1");
porteap5 show();
porteap6 show();
portebombe5 delete();
radiusDamage(originC + (0, 0, 10), 800, 400, 80);
porteav7 delete();
porteav8 delete();
portebare5 delete();
}

Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 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

»