Jump to content

sniper3369

Members
  • Posts

    96
  • Joined

  • Last visited

Posts posted by sniper3369

  1. The script logic you presented above is fine. But I need to see where it is located in the script and I also need to know which command you are using to open the doors. Give it a shot. I'm not sure that it is possible to do with that gate but I don't see why not. Worse comes to worse feel free to send it over I will take a peek when I can.

     

    I am assuming your using VcmdGarageDoorsUp and VcmdGarageDoorsDown defined in the LAFireStation script. If so you will see something these under the respective Vcmds

     


            if(Caller->HasName(NAME_CONTROLPANEL)) //= fire station 1
                Caller->PushActionExecuteCommand(ACTION_APPEND, DUMMY_GATES, Caller, 1, false);
            else if(Caller->HasName(NAME_CONTROLPANEL2)) //= fire station 2
                Caller->PushActionExecuteCommand(ACTION_APPEND, DUMMY_GATES, Caller, 3, false);
            else if(Caller->HasName(NAME_CONTROLPANEL3)) //= fire station 3
                Caller->PushActionExecuteCommand(ACTION_APPEND, DUMMY_GATES, Caller, 5, false);
            else if(Caller->HasName(NAME_CONTROLPANEL3)) //= fire station 4
                Caller->PushActionExecuteCommand(ACTION_APPEND, DUMMY_GATES, Caller, 7, false);


     

    Make sure you defined the gate under the correct child under DummyGates.

    In the examples above and below when you put them together when VcmdGarageDoorsUp is activated on CONTROLPANEL3 it will open gates gate07a and gate08a.

     

     

            if(ChildID == 5) //= Open front gates fire station 3
            {
                for(int i=0; i < gate07a.GetNumObjects(); i++)
                {
                    GameObject *gate = gate07a.GetObject(i);
                    Actor *vogate = vogate07a.GetActor(i);
                    if (gate->GetUserData() == 0)
                    {
                        gate->SetUserData(1);
                        gate->SetAnimation(ANI_OPEN);
                        vogate->SetVirtualObjectTerrain(VOSET_ROAD);
                    }
                }
                for(int i=0; i < gate08a.GetNumObjects(); i++)
                {
                    GameObject *gate = gate08a.GetObject(i);
                    Actor *vogate = vogate08a.GetActor(i);
                    if (gate->GetUserData() == 0)
                    {
                        gate->SetUserData(1);
                        gate->SetAnimation(ANI_OPEN);
                        vogate->SetVirtualObjectTerrain(VOSET_ROAD);
                    }
                }
            }

  2. No problem that does happen. Just make sure in the future you keep the dimensions proportional to what they originally were. They can be scaled but unless you want to remap the entire model don't change the relation.

     

    Example

    512x512 -> 1024x1024 ok

    512x512 -> 256x256 ok

    1024x512 -> 2048x512 ok

     

    512x512 -> 1024x768 NOT OK

    1024x512 -> 1024x1024 NOT OK

  3. You can just replace the texture so long as it has EXACTLY same layout, name and file extension as the original without changing the .v3o

     

    LAST RESORT

    If all else fails maybe we can see the problem with the files

    Upload

     

    1 the original skin you are attempting to replace

    2. your new skin

    3. the v3o.

  4. Hey Tim the trick is to always look above where your question. So lets say you want to redefine gate 1 and you are looking at this:

     

            ActorList l7 = Game::GetActors(VO_AMBULANCE01);
            for(int i=0; i < l7.GetNumActors(); i++)
            {
                Vector Ambulance01 = l7.GetActor(0)->GetPosition();
                Vehicle m = Game::CreateVehicle(OBJ_AMBULANCE02, UNNAMED);
                m.EnableBlueLights(false);
                m.SetPosition(Ambulance01);
                m.SetRotation(gate1);
                m.UpdatePlacement();
                m.SetMaxPassengers(2);
                m.SetMaxTransports(1);
                m.SetSpeed(12.0f);
                m.PushActionExecuteCommand(ACTION_NEWLIST, DUMMY_CALLCREW, Caller, 1, false);
                m.PushActionWait(ACTION_APPEND, 0.5f);
                m.PushActionExecuteCommand(ACTION_APPEND, DUMMY_CALLCREW, Caller, 2, false);
            }

    If you go up just a couple lines you will find a series of these lines

            GameObjectList gate01a = Game::GetGameObjects(NAME_GATE01A);
            for(int i=0; i < gate01a.GetNumObjects(); i++)
                GameObject *gate1 = gate01a.GetObject(i);

    If you need to mess with more stuff just keep looking up to find things

            GameObjectList gate01a = Game::GetGameObjects(NAME_GATE01A);
            for(int i=0; i < gate01a.GetNumObjects(); i++)
                GameObject *gate1 = gate01a.GetObject(i);

     

    const char NAME_GATE01A[]                = "fs_gate01a";

     

    fs_gate01a in this case references an object on the map specifically the fire station gate with the name fs_gate01a under its properties it will show in red on the map.

     

     

    In code you always have to define a method first before you can call it later. Hope that helped kinda long winded but I wanted to explain the best way I could.

  5. No 2.1 is the final version of the LA mod that was done..  The supervisor mod must be installed in the installed game directory, not the digital download folder of the game so for example you will find the location to extract in either of these locations:

    C:\Program Files (x86)\WizardWorks\911 - First Responders\Data\Lang\us\Supervisor

    Use the above if you have a 64 bit operating system

    C:\Program Files\WizardWorks\911 - First Responders\Data\Lang\us\Supervisor

    Use the above if it is a 32-bit operating system.

     

    The game will be installed by default to one of those two locations on your hard drive, that is where you install that modification to.

    PLEASE BACK UP your files too before you install that supervisor mod. We can't get those files back for you once you overwrite them.

  6. Still attempting to understand how far along in the process you are. I am currently assuming that somewhere on your computer you have a file called ex. Mymod.rar (the .rar) is the important part. This is what we call a compressed archive. In order to open it you need a program to decompress it. (7-zip is one example) You will have to run and install your new software on the computer (only download and use software from sources you trust). Now that the software is installed you can use it to decompress. With 7-zip you can right click on the .rar file and mouse over 7-zip and then extract to /mymod/ (trying to do this from memory as I am currently at work). Once that is done you need to copy the right folders into your modifications folder. Hope that helps

  7. In the same location you found your script "LAFireStationStart" there are two more scripts called "LAFireStation" and "ToLAFireStation" respectively. I'm not sure about the name on the second one but that is the general idea. You will need to add lines into each of those scripts to allow your vehicles to return to the station and restaff during the game. Right now the script you edited only allows the new vehicles to spawn and staff at the start of a new game.

  8.  

     

    As for making Polygons that match the shape of a lightbar/light which is what you mentioned at the end.. that is skill,

    the White Dot/ cross is where the light goes,

    Increasing the size of it by increasing the Corona size makes the light bigger

    and if you want it to flash you increase the frequency, and the offset is when you have multiple lights going you can alternate the flash.

     

     

    To make a polygon, add a corona and put it where you want, then go to Add polygon and click where you want the shape to be, then fiddle around with it, it takes skill and practice to make them look really good, but youll get the hang of it.

  9. Some who are more educated than I may have a more efficient answer however some things I may have observed:

     

    1. Did you use modify>attach and attach the two parts together under one title?

     

    2. I always seem to have to rewrite a file name that already exists:

     

        e.g. You want to name the combined model MFREngine you need to have a preexisting .V3O (with data that already exists) with the name MFREngine.V3O

               This is why we back things up

     

    I hope that was clear/helps :)

  10. I suppose it could work that way. I don't know if you could consider it a realistic tabletop. The events occur and terminate much faster than real life (at least in free play). The Campaign mode would probably work better for the aspect that your looking at. That being said I do love the game for certain aspects and just general messing around with computer coding and graphic art. Feel free to PM me if you have any other questions.

    A fellow FF/EMT

×
×
  • Create New...