Far Cry 2004

Hello, everyone! I really need help. I am new in C++, and I don't know anything about it. I want to make subtitle for Far Cry from 2004, but I don't know how. I opened training.lua file and I don't know what to do next. I am not sure is this right place for this question, but if someone can answer me, I will be greatfull. Sorry for my English. :)

This is one part:

-- Ingame Cutsequences


function Mission:Event_tower_fall()
Movie:PlaySequence('tower_fall');
end



function Mission:Event_patrolboat_passby()
Movie:PlaySequence('patrolboat_passby');
end


function Mission:Event_start_flyby()
Movie:PlaySequence('intro');
end

function Mission:Event_init_mission()

-- r_checkSunVis=2;
-- e_sky_box=0;
-- r_Contrast=0.6;
-- fov=90;
-- e_terrain_caustics=0;
-- r_WaterRefractions=0;
-- hud_panoramic=0;
-- e_water_ocean=1;
-- r_VolumetricFog=0;
-- e_shadow_maps=0;
-- r_Contrast=0.65;
end


function Mission:Event_MissionFinished()
_localplayer.cnt:SavePlayerElements();
Game:SendMessage('StartLevelFade Carrier');
-- Game:SendMessage('EndDemo');
end


function Mission:Event_heli_down()
Movie:PlaySequence('heli_down');
end



--------------------------------------------------------------------------------------------------------
-- Ingame Messages (Mission Objectives)




function Mission:Event_1stmessage()
--self.audio = Sound:LoadSound("LANGUAGES/missiontalk/training/training_specific_J_1.wav");
-- Sound:PlaySound(self.audio);


-- if we want to skip training bunker with F2

Hud.DisplayControl.bShowEnergyMeter = 1;
Hud.DisplayControl.bShowRadar = 1;
Hud.DisplayControl.bShowWeapons = 1;
Hud.DisplayControl.bShowAmmo = 1;
Hud.DisplayControl.bShowBreathOM = 1;
Hud:AddMessage(Localize("NewObjective"),12);
Hud:PushObjective({},Localize("SearchTheHutsFor"));
-- Hud:SetRadarObjective("ammo");
end


function Mission:Event_help_key_for_compass()
Hud:AddMessage(Localize("YouNeedAKey"),14);
Hud:AddMessage(Localize("MaybeTheGuardHas"),14);
end






function Mission:Event_help_objectiv_tab()
Hud:AddMessage(Localize("HintToDisplayYou"),12);
end


function Mission:Event_12ndmessage()

--self.audio = Sound:LoadSound("LANGUAGES/missiontalk/training/training_pickup_A_17.wav");
-- Sound:PlaySound(self.audio);

Hud:AddMessage(Localize("NewObjective"),17);
Hud:PushObjective({},Localize("GoToTheHutOnTheH"));
Hud:CompleteObjective(Localize("SearchTheHutsFor"));
Hud:SetRadarObjective("binoculars");

end




function Mission:Event_2ndmessage()

-- self.audio = Sound:LoadSound("LANGUAGES/missiontalk/training/training_specific_R_1.wav");
-- Sound:PlaySound(self.audio);

Hud:AddMessage(Localize("NewObjective"),17);
Hud:PushObjective({},Localize("GoToTheCamp"));
Hud:CompleteObjective(Localize("GoToTheHutOnTheH"));
Hud:SetRadarObjective("camp");

end






function Mission:Event_3ndmessage()



Hud:AddMessage(Localize("NewObjective"),17);
Hud:PushObjective({},Localize("StealAVehicle")) ;
Hud:CompleteObjective(Localize("GoToTheCamp"));
Hud:SetRadarObjective("vehicle");

end


function Mission:Event_34ndmessage()

-- self.audio = Sound:LoadSound("LANGUAGES/missiontalk/training/training_specific_D_16.wav");
-- Sound:PlaySound(self.audio);



Hud:AddMessage(Localize("NewObjective"),17);
Hud:PushObjective({},Localize("GoToTheCarrier")) ;
Hud:CompleteObjective(Localize("StealAVehicle"));
Hud:SetRadarObjective("carrier");

end


function Mission:Event_4ndmessage()

-- self.audio = Sound:LoadSound("LANGUAGES/missiontalk/training/training_specific_D_24.wav");
-- Sound:PlaySound(self.audio);



-- Hud:AddMessage('Doyle: Find a way inside the wreck',9);
-- Hud:AddMessage('the helicopter with valerie has landed to refuel',19);
Hud:CompleteObjective(Localize("GoToTheCarrier"));
Hud:PushObjective({},Localize("FindAWayInsideTh"));
Hud:SetRadarObjective("hole");

end

















That's no c++, that's lua script.
https://www.lua.org/start.html
Thanky you, man! :)))
Topic archived. No new replies allowed.