Just Cause 2: Multiplayer Mod

Avalanche Studios · Action

Just Cause 2: Multiplayer Mod patch notes · Nov 11, 2015

Experiment

0.2 Released

What's new in 0.2 Released: 85 changes to Just Cause 2: Multiplayer Mod, released Nov 11, 2015.

Content · 10

  • Scripters can now create their own client-side NPCs via the new ClientActor class.

    scriptable client actor
  • Added support for streaming image resources with AssetLocation.Resource.

    streamed image resource
  • Added functions to set a vehicle's stream position and stream angle.

    vehicle stream position and angle
  • Added getters and setters for vehicle spawn position and spawn angle.

    vehicle spawn position and angle
  • Added FontAwesome and League Gothic fonts to resources.

    font
  • Steam achievements were added, unlocked by completing tasks with players.

    steam achievement
  • Added GameRender event allowing rendering inside the game world with depth testing.

    depth-tested rendering
  • All civilian models are now available to use, including those previously unsupported.

    civilian model support
  • Added ClientActor class providing a basic client-side NPC interface.

    clientactor interface
  • Added Player:GetAvatar and AvatarSize enum.

    player avatar

Controls · 4

  • Added a setting to toggle the vehicle stunt camera.

    vehicle stunt camera setting
  • Removed the apostrophe keybind opening the console and added a setting to configure the console keybind.

    console keybind
  • Added chat key and chat toggle key settings.

    chat key setting
  • Added a setting to toggle vehicle camera snap and adjust its timeout.

    vehicle camera snap setting

System · 43

  • LocalPlayerBulletHit event now includes a bone argument.

    bullet hit bone argument
  • Added VehicleTransmission with gear and clutch delay methods.

    vehicle transmission api
  • Improved Lua errors with event argument printout.

    lua error message
  • Improved Timer precision.

    timer precision
  • Scripts are now loaded in alphabetical order on all platforms.

    script loading order
  • Added LocalPlayer:IsFriend accepting steamid or player.

    local player friend check
  • Added entity and impulse arguments to the VehicleCollide event.

    vehicle collide event argument
  • Added config variable SendAutorunWhenEmpty, default false, controlling whether autorun scripts are sent for empty modules.

    autorun script sending for empty module
  • Added ShapeTrigger with enter and exit events plus TriggerType and VehicleTriggerType enums.

    shape trigger
  • Added accessors for vehicle transmission, suspension and aerodynamics.

    vehicle subsystem accessor
  • Storage of values extended from player-only to all entities.

    entity value storage
  • Added Vehicle.GetClassByModelId, Vehicle:GetClass and the VehicleClass enum.

    civilian vehicle class api
  • The marshaller now accepts table keys of any type.

    marshaller table key type
  • Added a suppressible PlayerAchievementUnlock event.

    achievement unlock event
  • Added VehicleSuspension with chassis direction and strength methods.

    vehicle suspension api
  • Added Render:GetDepthEnabled.

    render depth state query
  • Added StreamableObject:GetStreamedPlayers.

    streamableobject streamed players query
  • Added vehicle linear and angular velocity setters.

    vehicle velocity setter
  • Added CursorType enum and Mouse:SetCursor function.

    mouse cursor type
  • Added ClientModulesLoad event.

    client modules load event
  • Added queries for vehicle torque, wheel count, RPM, max RPM and top speed.

    vehicle performance query
  • Added Server:GetFrameTime.

    server frame time query
  • Added Character:GetSeat.

    character seat query
  • Added SLED debugger support.

    debugger support
  • Added SharedObject, NetworkObject and WorldNetworkObject classes greatly improving client/server communication.

    client/server communication class
  • Luabind now checks parent classes when looking up class members.

    luabind parent class member lookup
  • Added LocalPlayerEjectVehicle event.

    local player eject vehicle event
  • Added getter and setter for character left arm state.

    character left arm state
  • Added VehicleAerodynamics for land vehicles with air density and drag methods.

    vehicle aerodynamics api
  • Added ClientStreamableObject as a base class to Vehicle and Player.

    streamable client base class
  • Collisions between two different types can now be disabled and re-enabled.

    collision toggling between type
  • Added Player:Damage.

    player damage function
  • Added Client:GetFrameTime.

    client frame time query
  • Added basic UTF-8 support to Lua strings and a SetUnicode(boolean) global function, allowing more languages.

    basic unicode support
  • Added Character class common to Player and ClientActor.

    character base class
  • Added GetClimateZone method to streamed and client entities along with the ClimateZone enum.

    climate zone query
  • Added SetOxygen and GetOxygen functions to LocalPlayer.

    local player oxygen
  • Added optional boolean parameter to Physics:Raycast to disable the raycast filter.

    raycast filter option
  • Added Game:GetWeatherSeverity.

    weather severity query
  • Added netstat command and gui_show_netstat console command.

    netstat diagnostic
  • Added Player:RequestGroupMembership with a callback.

    player:requestgroupmembership
  • Added LocalPlayer:SetLinearVelocity.

    local player linear velocity setter
  • Added module metadata support on the server.

    module metadata

UI · 14

  • Vastly improved the chat window with word wrap and chat history.

    chat window
  • Added window position and size launch parameters.

    launch window parameter
  • Added Ctrl-Left and Ctrl-Right hotkeys to move the TextBox cursor word by word.

    textbox word-by-word cursor movement
  • Added Camera functions SetFOV and GetFOV.

    camera field of view
  • Added support for correctly rendering the tab character in text.

    tab character rendering
  • Server browser filters are now consistent between restarts.

    server browser filter persistence
  • Added ability to navigate TextBox history using Up and Down arrow keys.

    textbox history navigation
  • Added description field to the server browser.

    server browser description
  • Added a Featured tab to the server browser.

    featured server browser tab
  • Main menu was overhauled to provide convenient access to favourite servers.

    main menu overhaul
  • Added TextBoxNumeric Get and SetNegativeAllowed.

    textbox numeric negative value setting
  • Added Label:SetLineSpacing.

    label line spacing
  • Added support for Unicode characters in CharPress.

    unicode charpress support
  • Added a Featured tab and a description field to the server browser.

    server browser featured tab and description field

Fix · 13

  • Cleaned up streamer code, hopefully reducing server crashes.

    server crashes from streamer
  • Fixed script profiler not counting network events.

    network event profiling
  • Fixed the random number generator not being seeded at startup.

    random number generator seeding
  • Fixed SteamId outputting the community id when printed on Windows.

    steamid community id output on window
  • Fixed a major bug causing random models and effects to become invisible.

    random models/effects invisible bug
  • Fixed server memory not being freed on entity removal.

    server memory leak on entity removal
  • Fixed a bug where scripts still ran even if the server failed to start.

    server scripts running after failed start
  • Vector2, Vector3 and Color statics can no longer be edited.

    vector and color static editing
  • Fixed script profiler not counting network events.

    network events in script profiler
  • Angles sent over the network no longer lose precision from compression.

    angle network precision
  • Fixed IsValid raising an exception for non-table/userdata types.

    isvalid exception on non-table type
  • Major sync improvement to vehicles and on-foot weapons.

    vehicle and on-foot weapon sync
  • Comparing any API class with '==' should now work.

    api class equality comparison

General · 1

  • General sync improvement.

    general

Before the patch · 1