-
Posts
498 -
Joined
-
Last visited
Content Type
Profiles
Forums
Calendar
Tutorials
Downloads
Gallery
Everything posted by Alex03
-
Hey Me and Matte are having some problems with these sosi scripts. Could annyone pleas take a look on them and see if they could find whats wrong? http://pastebin.com/g0YuwQBz and ************************************************************************************************** // #Version 1.0# Command-Script **** // **** // Includes: SonderSignalScript - deutsch **** // **** // 01.0 = Hauptkommando VCmdSiren **** // 01.1 = Updatekommando DUMMYUpdatePos **** // 01.2 = Deaktivierungskommando DUMMYDisableSiren **** // 01.3 = Erkennungskommando DUMMYFindPath **** // 01.4 = Erkennungskommando DUMMYHasSiren **** // **** //************************************************************************************************** // Sponsored by: DDR-MODIFIKATION | www.ddr-mod.de | Errors? Contact: Bass-ti@ddr-mod.de **** //************************************************************************************************** const char IMG[] = "SoSi_Icons"; const char EACTION_FINDPATH[] = "EActionFindPath"; const char EACTION_EXTINGUISH[] = "EActionExtinguish"; const char DUMMY_HASSIREN[] = "DUMMYHasSiren"; const char DUMMY_UPDATEPOS[] = "DUMMYUpdatePos"; const char DUMMY_FINDPATH[] = "DUMMYFindPath"; const char NAME_DUMMYOBJECT[] = "HelpingObjekt_Isgard"; // FireFighter const char PROTO_FF_01[] = "mod:Prototypes/Vehicles/Fire Department/CHIDEA_SK_HLF.e4p"; const char PROTO_FF_02[] = "mod:Prototypes/Vehicles/Fire Department/dekonp.e4p"; const char PROTO_FF_03[] = "mod:Prototypes/Vehicles/Fire Department/CHIDEA_SCANIA_HLF1.e4p"; const char PROTO_FF_04[] = "mod:Prototypes/Vehicles/Fire Department/hagglunds.e4p"; const char PROTO_FF_05[] = "mod:Prototypes/Vehicles/Metz/Naila.e4p"; const char PROTO_FF_07[] = "mod:Prototypes/Vehicles/Metz/Hof.e4p"; const char PROTO_FF_08[] = "mod:Prototypes/Vehicles/Metz/Helmbrechts.e4p"; const char PROTO_FF_09[] = "mod:Prototypes/Vehicles/Metz/gtf.e4p"; // Police const char PROTO_PD_30[] = "mod:Prototypes/Vehicles/Police/stw.e4p"; const char PROTO_PD_31[] = "mod:Prototypes/Vehicles/Police/mtw.e4p"; const char PROTO_PD_32[] = "mod:Prototypes/Vehicles/Police/test.e4p"; const char PROTO_PD_33[] = "mod:Prototypes/Vehicles/Police/civilvan01.e4p"; const char PROTO_PD_34[] = "mod:Prototypes/Vehicles/Mobile Wache/mowa.e4p"; // Ambulance const char PROTO_A_60[] = "mod:Prototypes/Vehicles/Ambulance/rtw.e4p"; const char PROTO_A_61[] = "mod:Prototypes/Vehicles/Ambulance/rhf.e4p"; const char PROTO_A_62[] = "mod:Prototypes/Vehicles/Ambulance/KTWCrafter.e4p"; const char PROTO_A_63[] = "mod:Prototypes/Vehicles/Ambulance/RTWCrafter.e4p"; // TEC const char PROTO_TEC_90[] = "mod:Prototypes/Vehicles/TEC/fgri.e4p"; const char PROTO_TEC_91[] = "mod:Prototypes/Vehicles/TEC/asf.e4p"; int DummyGroup = 20; // 01.0 object VCmdSiren : CommandScript { // COMMENTARY: // Das Commando welches Eure Einheiten benötigt heißt "VCmdSiren", // VCmd steht für VehicleboundCommandoscript VCmdSiren() { // COMMENTARY: // Das Bild für Euer neues SoSi-Commando heißt "SoSi_Icons", // der Name kann oben im globalen Bereich geändert werden. SetIcon(IMG); SetCursor(IMG); SetRestrictions(RESTRICT_SELFEXECUTE); SetPossibleCallers(ACTOR_VEHICLE); } bool CheckPossible(GameObject *Caller) { if (!Caller->IsValid()) return false; return true; } bool CheckTarget(GameObject *Caller, Actor *Target, int childID) { if (!Target->IsValid() || Target->GetID() != Caller->GetID()) return false; return true; } void PushActions(GameObject *Caller, Actor *Target, int childID) { Vehicle v(Caller); if (!v.HasCommand(DUMMY_HASSIREN)) { // COMMENTARY: // Ist zum Zeitpunkt des Commandos kein Blaulicht aktiv, // wird es automatisch aktiviert. if (!v.IsBlueLightEnabled()) { v.EnableBlueLights(true); } int soundID; Vector CarPos = v.GetPosition(); // COMMENTARY: // Hier kommen die StrCompares aller Eurer Fahrzeuge hin und die dazugehörigen SoundFiles. if (StrCompare(v.GetPrototypeFileName(), PROTO_FF_01) == 0) { soundID = Audio::PlaySample3D("mod:Audio/FX/EMsiren05.wav", CarPos, true); } if (StrCompare(v.GetPrototypeFileName(), PROTO_FF_02) == 0) { soundID = Audio::PlaySample3D("mod:Audio/FX/EMsiren05.wav", CarPos, true); } if (StrCompare(v.GetPrototypeFileName(), PROTO_FF_03) == 0) { soundID = Audio::PlaySample3D("mod:Audio/FX/EMsiren05.wav", CarPos, true); } if (StrCompare(v.GetPrototypeFileName(), PROTO_FF_04) == 0) { soundID = Audio::PlaySample3D("mod:Audio/FX/EMsiren05.wav", CarPos, true); } if (StrCompare(v.GetPrototypeFileName(), PROTO_FF_05) == 0) { soundID = Audio::PlaySample3D("mod:Audio/FX/EMsiren05.wav", CarPos, true); } if (StrCompare(v.GetPrototypeFileName(), PROTO_FF_07) == 0) { soundID = Audio::PlaySample3D("mod:Audio/FX/EMsiren05.wav", CarPos, true); } if (StrCompare(v.GetPrototypeFileName(), PROTO_FF_09) == 0) { soundID = Audio::PlaySample3D("mod:Audio/FX/EMsiren05.wav", CarPos, true); } if (StrCompare(v.GetPrototypeFileName(), PROTO_PD_30) == 0) { soundID = Audio::PlaySample3D("mod:Audio/FX/Emsiren01.wav", CarPos, true); } if (StrCompare(v.GetPrototypeFileName(), PROTO_PD_31) == 0) { soundID = Audio::PlaySample3D("mod:Audio/FX/Emsiren01.wav", CarPos, true); } if (StrCompare(v.GetPrototypeFileName(), PROTO_PD_32) == 0) { soundID = Audio::PlaySample3D("mod:Audio/FX/Emsiren02.wav", CarPos, true); } if (StrCompare(v.GetPrototypeFileName(), PROTO_PD_33) == 0) { soundID = Audio::PlaySample3D("mod:Audio/FX/Emsiren02.wav", CarPos, true); } if (StrCompare(v.GetPrototypeFileName(), PROTO_PD_34) == 0) { soundID = Audio::PlaySample3D("mod:Audio/FX/Emsiren02.wav", CarPos, true); } if (StrCompare(v.GetPrototypeFileName(), PROTO_A_61) == 0) { soundID = Audio::PlaySample3D("mod:Audio/FX/Emsiren03.wav", CarPos, true); } if (StrCompare(v.GetPrototypeFileName(), PROTO_A_62) == 0) { soundID = Audio::PlaySample3D("mod:Audio/FX/Emsiren03.wav", CarPos, true); } if (StrCompare(v.GetPrototypeFileName(), PROTO_A_63) == 0) { soundID = Audio::PlaySample3D("mod:Audio/FX/Emsiren03.wav", CarPos, true); } if (StrCompare(v.GetPrototypeFileName(), PROTO_TEC_90) == 0) { soundID = Audio::PlaySample3D("mod:Audio/FX/Emsiren04.wav", CarPos, true); } if (StrCompare(v.GetPrototypeFileName(), PROTO_TEC_91) == 0) { soundID = Audio::PlaySample3D("mod:Audio/FX/Emsiren04.wav", CarPos, true); } int CarID = v.GetID(); // COMMENTARY: // Das aus dem alten Script bekannte Hilfsobjekt wird immernoch benötigt, // um zu checken, ob das Fahrzeug die EActionFindPath hat (wenn es direkt aus der Wache beordert wurde) GameObject mDummy = Game::CreateObject("mod:Prototypes/Objects/Misc/empty.e4p", NAME_DUMMYOBJECT); mDummy.Hide(); mDummy.SetUserData(CarID); mDummy.PushActionExecuteCommand(ACTION_NEWLIST, DUMMY_UPDATEPOS, &v, CarID, false); v.AssignCommand(DUMMY_HASSIREN); // COMMENTARY: // Hier wird der Sound gebunden in einer ID auf das Fahrzeug übergeben. // Außerdem wird diese ID in die UserData des Fahrzeugs geschrieben um es später wiederzuerkennen. v.SetUserData(soundID); v.AttachSound(soundID); return; } if (v.HasCommand(DUMMY_HASSIREN)) { if (childID == 1) { v.EnableBlueLights(false); } // COMMENTARY: // RückAktion, der Sound wird gestoppt und vom Fahrzeug getrennt. int CarID = v.GetID(); int ref = v.GetUserData(); v.UnattachSound(ref); Audio::StopSample(ref); // COMMENTARY: // Außerdem wird das DummyObjekt gelöscht. int mSirTest; GameObjectList list = Game::GetGameObjects(NAME_DUMMYOBJECT); for(int i=0; i Any help is appreciated. mvh Alex and Matte
-
News 05.05.11 A little update! This is a Ambulance with ProfileGenios aufbau. The Genios is made by me and its available for download for those who asks. Credits to NNico and Sputnik for the Sprinter. I also have planned to release a beta 17.05, but this is not a final date! However a beta will come! Therefor I need some beta testers. I have tow maybe three, but need to more. Those who want pleas send a PM.
-
Have you seen in the CCC. Its the Mercedes G Class.
-
Pictures say more than thousand words!
-
Solution to crash to desktop (After 2 seconds black screen)
Alex03 replied to leahcim512's topic in Technical Related Support
Did you reinstall the game? -
Cool that they have their own ambulancese!!! Here are some of my creations! . Big pic!
-
(Yeah, im bored ^^ ) Nice skinn! But why does the Police use KTW??
-
I like what you are! A good freelancer who helps others!!! Nice!
-
Hey you are that gay on the greman forum right,oberpfälzer?
-
Since 2007...that's a long time! I think I have read about it in the EM Newstime it looked good!
-
Cool can't wait!! One question: whats the name one the lightbar the Police Ford Mondeo uses?
-
I ban you becuse I always are!
-
I ban you because it's a eavil cat!
-
I ban you because I hate the sunn!!!
-
Could you, when showing a update, show something from the map?
-
We have some of the best missile teqknology in thw world!
-
NICE!!! Can't wait for the skin!!! Keep it up!!!
-
Do you have any skin from other countries than in Europe?
-
I ban you because I lost my post count to a spam bot !
-
The game doesn't use the free play map. Free play map is the mission named Simulation! Try and you will not have a shut-down!
-
Do we????I want proof!!!
-
Update The Engine is now complete.Not much to say, just watch the pic.Feedback is wanted, everything is good!
-
And since we don't need any help we are the best!!!
-
I didnt know that? But sweds and danes do help each other much
-
Why the danes?