-
Posts
151 -
Joined
-
Last visited
-
Days Won
3
Content Type
Profiles
Forums
Calendar
Tutorials
Downloads
Gallery
Posts posted by alexCNP
-
-
12 minutes ago, emsfan112 said:
Hello,
Nice models and even from pictures i can see the lighting must be excelent.
Just carry on http://www.emergency-planet.com/uploads/emoticons/default_12.gif
Thanks! I will try some new pictures at daytime.
Lighting it’s something with I’m never satisfied, but I thinks it has been improved a lot since my first attempts http://www.emergency-planet.com/uploads/emoticons/default_smile.png
-
Well, over the last year I've been making a mod of my hometown, and as a result, I've been finding and creating content for a modification that I always wanted to have, Madrid mod.
So, last week I started it, and that's all I have by now.
I can upload some screenshots of my hometown mod also, if someone wants to see it. As said, both are private mods, for avoiding credits issues by now.
Renault Koleos, Policía Municipal de Madrid
Credits: Vehicle model and texture made by me. Lightbar by Florian Hagen (Federal Signal Set), edited by me.
- 1
-
Looks beautiful! keep the work http://www.emergency-planet.com/uploads/emoticons/default_smile.png
-
-
Nice! Happy Halloween
-
-
I've found this game and I liked the style it has. Not much to explain about it, just take a look at their webpage:
-
-
12 hours ago, Imortalmarc2 said:
Mod looks amazing, super excited. look forward to playing for hours on end lol.
Random Question; but how much would it cost someone if they wanted a mod like this made just for them? Just wondering.
Time, too much time. Also depends of how much accurate you want it to be.
-
-
-
I like it! Good job. Keep with it
-
14 hours ago, itchboy said:
Can I see what it looked like when you implemented it?
The error you showed me is unusual. I don't recognize the corrupted symbols after the "TERRAIN_TRAFFIC" line.
Well, now it's fixed. I edited the file with wordpad this time and no issues by now, patrol cars respect traffic lights.
Idk if is something related to Notepad++ or I should have copied the code direct from your spoiler the first time, but now it works.
Thank you anyways!
-
6 hours ago, itchboy said:
Can I see the rest of the script?
Yep, here it go. I deleted those 3 lines this afternoon, but where in the exact same position as yours.
Spoiler//******************************************************************************************
// #Version 1.3#
//
// Includes: Patrol command for police vehicles.
//
// - VcmdPatrol
// - VcmdPatrolAmbulance
// - DummyPatrol
//
// Script by Hoppah
//
// Usage of this script in other mods is NOT allowed without permission of Hoppah
//
//******************************************************************************************const char CMD_SIREN[] = "VcmdSiren";
const char CMD_AUTOSIREN_OFF[] = "VcmdAutoSirenOff";
const char CMD_WARNINGLIGHTS_OFF[] = "VcmdWarningLightsOff";
const char CMD_WARNINGLIGHTS_ON[] = "VcmdWarningLightsOn";
const char CMD_FLOODLIGHTS_OFF[] = "VcmdFloodLightsOff";
const char CMD_FLOODLIGHTS_ON[] = "VcmdFloodLightsOn";
const char CMD_STANDBY_ON[] = "VcmdStandbyOn";
const char CMD_STANDBY_OFF[] = "VcmdStandbyOff";
const char CMD_PATROL[] = "VcmdPatrol";
const char DUMMY_PATROL[] = "DummyPatrol";
const char DUMMY_DISABLE[] = "DummyDisableSiren";
const char DUMMY_HASSIREN[] = "DummyHasSiren";
const char PATH_PATROL01[] = "patrolpath01";
const char PATH_PATROL02[] = "patrolpath02";
const char PATH_PATROL03[] = "patrolpath03";int DummyGroup = 31;
object VcmdPatrol : CommandScript
{
VcmdPatrol()
{
SetCursor("patrol");
SetIcon("patrol");
SetGroupID(DummyGroup);
SetGroupLeader(true);
SetRestrictions(RESTRICT_SELFEXECUTE);
}bool CheckPossible(GameObject *Caller)
{
if (!Caller->IsValid())
return false;if (!Game::IsFreeplay() && !Game::IsMultiplayer())
return false;return true;
}bool CheckTarget(GameObject *Caller, Actor *Target, int childID)
{
if (!Caller->IsValid() || !Target->IsValid() || (Caller->GetID() != Target->GetID()))
return false;return true;
}void PushActions(GameObject *Caller, Actor *Target, int ChildID)
{
Vehicle v(Caller);
if (v.HasCommand("DummyFollow"))
v.RemoveCommand("DummyFollow");
if (v.HasCommand(CMD_STANDBY_OFF))
{
v.RemoveCommand(CMD_STANDBY_OFF);
v.AssignCommand(CMD_STANDBY_ON);
}
if (v.HasCommand(CMD_WARNINGLIGHTS_OFF))
{
v.EnableBlinker(BLT_NONE);
v.RemoveCommand(CMD_WARNINGLIGHTS_OFF);
v.AssignCommand(CMD_WARNINGLIGHTS_ON);
}
if (v.HasCommand(CMD_FLOODLIGHTS_OFF))
{
v.EnableSpecialLights(false);
v.RemoveCommand(CMD_FLOODLIGHTS_OFF);
v.AssignCommand(CMD_FLOODLIGHTS_ON);
}
if (v.HasCommand(DUMMY_HASSIREN) && v.HasCommand(CMD_AUTOSIREN_OFF))
Game::ExecuteCommand(DUMMY_DISABLE, &v, &v);
v.EnableBlueLights(false);
if (v.IsCollidingWithVirtualObject("patrol01")) //Fix for ambulances getting stuck at hospital on the new freeplay map
{
ActorList l1 = Game::GetActors("patrol02");
if(l1.GetNumActors() > 0)
{
Vector Move = l1.GetActor(0)->GetPosition();
v.PushActionMove(ACTION_NEWLIST, Move);
v.PushActionExecuteCommand(ACTION_APPEND, CMD_PATROL, Caller, 0, false);
return;
}
}v.SetSpeed(6.4f);
PathList p1l(PATH_PATROL01);
Path path1 = p1l.GetPath(0);PathList p2l(PATH_PATROL02);
Path path2 = p2l.GetPath(0);PathList p3l(PATH_PATROL03);
Path path3 = p3l.GetPath(0);int index1 = path1.GetNearestPointIndex(v.GetPosition());
Vector pt1 = path1.GetPoint(index1);int index2 = path2.GetNearestPointIndex(v.GetPosition());
Vector pt2 = path2.GetPoint(index2);int index3 = path3.GetNearestPointIndex(v.GetPosition());
Vector pt3 = path3.GetPoint(index3);int random = rand()%2;
Vector target;
if (Math::dist(pt1.x, pt1.y, v.GetPosition().x, v.GetPosition().y) > Math::dist(pt2.x, pt2.y, v.GetPosition().x, v.GetPosition().y))
{
if (Math::dist(pt2.x, pt2.y, v.GetPosition().x, v.GetPosition().y) > Math::dist(pt3.x, pt3.y, v.GetPosition().x, v.GetPosition().y))
{
if (random == 0)
v.SetObjectPath(PATH_PATROL03, 6.4f, true);
else
v.SetObjectPath(PATH_PATROL03, 6.4f, false);
target = pt3;
} else
{
if (random == 0)
v.SetObjectPath(PATH_PATROL02, 6.4f, true);
else
v.SetObjectPath(PATH_PATROL02, 6.4f, false);
target = pt2;
}
} else
{
if (Math::dist(pt1.x, pt1.y, v.GetPosition().x, v.GetPosition().y) > Math::dist(pt3.x, pt3.y, v.GetPosition().x, v.GetPosition().y))
{
if (random == 0)
v.SetObjectPath(PATH_PATROL03, 6.4f, true);
else
v.SetObjectPath(PATH_PATROL03, 6.4f, false);
target = pt3;
} else
{
if (random == 0)
v.SetObjectPath(PATH_PATROL01, 6.4f, true);
else
v.SetObjectPath(PATH_PATROL01, 6.4f, false);
target = pt1;
}
}Path path = v.GetObjectPath();
v.AssignCommand(DUMMY_PATROL);
v.PushActionMove(ACTION_NEWLIST, target);
v.PushActionUsePath(ACTION_APPEND, &path, true, 6.5f);
}
};object VcmdPatrolAmbulance : CommandScript
{
VcmdPatrolAmbulance()
{
SetCursor("patrol");
SetIcon("patrol2");
SetGroupID(DummyGroup);
SetGroupLeader(true);
SetRestrictions(RESTRICT_SELFEXECUTE);
}bool CheckPossible(GameObject *Caller)
{
if (!Caller->IsValid())
return false;if (!Game::IsFreeplay() && !Game::IsMultiplayer())
return false;return true;
}bool CheckTarget(GameObject *Caller, Actor *Target, int childID)
{
if (!Caller->IsValid() || !Target->IsValid() || (Caller->GetID() != Target->GetID()))
return false;return true;
}void PushActions(GameObject *Caller, Actor *Target, int ChildID)
{
Vehicle v(Caller);
if (v.HasCommand(CMD_STANDBY_OFF))
{
v.RemoveCommand(CMD_STANDBY_OFF);
v.AssignCommand(CMD_STANDBY_ON);
}
if (v.HasCommand(CMD_WARNINGLIGHTS_OFF))
{
v.EnableBlinker(BLT_NONE);
v.RemoveCommand(CMD_WARNINGLIGHTS_OFF);
v.AssignCommand(CMD_WARNINGLIGHTS_ON);
}
if (v.HasCommand(CMD_FLOODLIGHTS_OFF))
{
v.EnableSpecialLights(false);
v.RemoveCommand(CMD_FLOODLIGHTS_OFF);
v.AssignCommand(CMD_FLOODLIGHTS_ON);
}
if (v.HasCommand(DUMMY_HASSIREN) && v.HasCommand(CMD_AUTOSIREN_OFF))
Game::ExecuteCommand(DUMMY_DISABLE, &v, &v);
v.EnableBlueLights(false);
v.SetSpeed(6.4f);
PathList p1l(PATH_PATROL01);
Path path1 = p1l.GetPath(0);PathList p2l(PATH_PATROL02);
Path path2 = p2l.GetPath(0);PathList p3l(PATH_PATROL03);
Path path3 = p3l.GetPath(0);int index1 = path1.GetNearestPointIndex(v.GetPosition());
Vector pt1 = path1.GetPoint(index1);int index2 = path2.GetNearestPointIndex(v.GetPosition());
Vector pt2 = path2.GetPoint(index2);int index3 = path3.GetNearestPointIndex(v.GetPosition());
Vector pt3 = path3.GetPoint(index3);int random = rand()%2;
Vector target;
if (Math::dist(pt1.x, pt1.y, v.GetPosition().x, v.GetPosition().y) > Math::dist(pt2.x, pt2.y, v.GetPosition().x, v.GetPosition().y))
{
if (Math::dist(pt2.x, pt2.y, v.GetPosition().x, v.GetPosition().y) > Math::dist(pt3.x, pt3.y, v.GetPosition().x, v.GetPosition().y))
{
if (random == 0)
v.SetObjectPath(PATH_PATROL03, 6.4f, true);
else
v.SetObjectPath(PATH_PATROL03, 6.4f, false);
target = pt3;
} else
{
if (random == 0)
v.SetObjectPath(PATH_PATROL02, 6.4f, true);
else
v.SetObjectPath(PATH_PATROL02, 6.4f, false);
target = pt2;
}
} else
{
if (Math::dist(pt1.x, pt1.y, v.GetPosition().x, v.GetPosition().y) > Math::dist(pt3.x, pt3.y, v.GetPosition().x, v.GetPosition().y))
{
if (random == 0)
v.SetObjectPath(PATH_PATROL03, 6.4f, true);
else
v.SetObjectPath(PATH_PATROL03, 6.4f, false);
target = pt3;
} else
{
if (random == 0)
v.SetObjectPath(PATH_PATROL01, 6.4f, true);
else
v.SetObjectPath(PATH_PATROL01, 6.4f, false);
target = pt1;
}
}Path path = v.GetObjectPath();
v.AssignCommand(DUMMY_PATROL);
v.PushActionMove(ACTION_NEWLIST, target);
v.PushActionUsePath(ACTION_APPEND, &path, true, 6.5f);
}
};object DummyPatrol : CommandScript
{
DummyPatrol()
{
SetGroupID(DummyGroup);
}bool CheckGroupVisibility(GameObject *Caller)
{
return false;
}
bool CheckPossible(GameObject *Caller)
{
return false;
}
bool CheckTarget(GameObject *Caller, Actor *Target, int childID)
{
return false;
}void PushActions(GameObject *Caller, Actor *Target, int childID)
{
Vehicle v(Caller);
v.RemoveObjectPath();
if (v.HasCommand(DUMMY_PATROL))
v.RemoveCommand(DUMMY_PATROL);
if(StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/Police/C-4_CNP2.e4p") == 0 || StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/Police/C-4_CNP.e4p") == 0 || StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/Police/Picasso_V65.e4p") == 0 || StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/Police/V64.e4p") == 0 || StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/Police/Picasso01.e4p") == 0)
{
v.SetSpeed(12.0f);
}
else if(StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/Police/Altea_CNP.e4p") == 0)
{
v.SetSpeed(12.0f);
}
else if(StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/Police/Scudo_CNP.e4p") == 0)
{
v.SetSpeed(12.0f);
}
else if(StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/Police/Police/Atestats.e4p") == 0)
{
v.SetSpeed(12.0f);
}
else if(StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/Police/4G8-CNP.e4p") == 0)
{
v.SetSpeed(12.0f);
}
else if(StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/Police/MaxiZ_N66.e4p") == 0)
{
v.SetSpeed(12.0f);
}
else if(StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/Police/Pathfinder PLG.e4p") == 0)
{
v.SetSpeed(10.0f);
}
else if(StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/Police/Expert_UPR.e4p") == 0 || StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/Police/Xsara_CNP.e4p") == 0)
{
v.SetSpeed(12.0f);
}
else if(StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/Police/Primastar-PLG.e4p") == 0 || StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/Police/PLG-2.e4p") == 0 || StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/Police/PLG-3.e4p") == 0 || StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/Police/PLG-1.e4p") == 0)
{
v.SetSpeed(12.0f);
}
else if(StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/03 LA Police/swat_truck.e4p") == 0 || StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/Police/Patrol_PLG.e4p") == 0 || StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/Police/SC07.e4p") == 0)
{
v.SetSpeed(14.0f);
}
else if(v.GetVehicleType() == VT_AMBULANCE_RTW)
{
v.SetSpeed(12.0f);
}
else if(StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/03 LA Police/camaro_chp.e4p") == 0)
{
v.SetSpeed(13.0f);
}
else if(StrCompare(v.GetPrototypeFileName(), "mod:Prototypes/Vehicles/03 LA Police/bpat_dodge_charger.e4p") == 0)
{
v.SetSpeed(14.0f);
} else
{
v.SetSpeed(12.0f);
System::Log("Vehicle on patrol not identified!");
}
}
}; -
-
12 hours ago, itchboy said:
Yes. Emergency 4 has a different FOV than Zmodeler and Blender. Most people dont notice the difference but it becomes really apparent once you start making models.
Have you noticed how some modellers like MikeyPI intentionally make their models appear taller than they actually are? That is because of the game perspective.
My most recent Ford CVPI model had to be adjusted to look less pudgy looking because of how Em4 distorts the perspective slightly.
You can adjust the FOV value in the em4.cfg file but it doesnt really change the perspective all that much.
Oh, woah, thanks for the response. I had created my first complete 3D model and it looks completely awful on the editor compared to the zmodeler one.
I tried changing the FOV, but as you said, doesn't really match the Zmod one.
I will try making it taller and shorter, and we will see if it works... I don't like pudgy models lol.
Thanks again!
-
Hi! I have a doubt, and I think i'm becoming crazy. Does de game change how vehicles are seen in any way? I'm looking the model in zmodeler, and when I look the same model inside de editor, it looks much more "flattened".
I don't know what can cause this, if its the FOV, or what, but it is like ingame models are lower than in zmodeler.
Or may be just my imagination?
-
really nice script. Now I miss what Em5 may have been...
-
Looks stunning mate!
-
Well, Personally I prefer custom map, but I know how hard and how much time it does consume.
So I can deal with the original map while you create the new one http://www.emergency-planet.com/uploads/emoticons/default_biggrin.png
-
lol... What a shame that ST didn't document modding better.
-
On 2/5/2019 at 2:56 AM, itchboy said:
I selected the headlights and tailights and assigned them to a different material.
I set each material to a different color for my own sake. I didnt want to get confused with what's the body and what's the headlight.
thanks!
-
Hi @itchboy
I've seen that headlights and tail lights of your zmodeler models have diferents colors from the body of the car
Is there any "special" option for that or you just change the color of the polygon?
Thanks!
-
nice ones!
Emoticons/emojis not showing
in Website support
Posted
Hi. I've been experiencing an issue for some years, which is still present.
The issue is that emoticons are shown when I'm writing the message, but when I post it, it appears like and URL,but without highlight. Like this:
http://www.emergency-planet.com/uploads/emoticons/default_smile.png
Any idea why?