Jump to content

Search the Community

Showing results for tags 'siren'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Altis Life RPG
    • Headquarters
    • Introductions
    • RULES
  • Altis Life RPG Community
    • General Discussion
    • Helper Recruitment
    • Altis Life Server Advertising
    • Discord (join us for discuss)
  • Tools and Administration
    • Altis Life RPG (official Framework)
    • Altis Life Wiki
    • Server Setup and Configuration
    • Database
    • Security
    • Maintenance
  • Altis Life Customization
    • Server & Scripting Help Desk
    • Releases & Download
    • Misc & Tools
  • Kool Kids Klub's Oof
  • Kool Kids Klub's Secret Spot

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


CPU


Memory


Hard Drive


Graphic Card


PSU


Case


Monitor


Description - Other Accessories

Found 2 results

  1. This is a copy paste from @Madrox's post full credit goes to him (or wherever he got it from). I am just posting this so everyone can see and stop asking for it... Difficulty: Easy! Source: Under Core > Cop create a sqf called fn_copSiren2.sqf Inside that file paste #include "..\..\script_macros.hpp" private["_vehicle"]; _vehicle = [_this,0,ObjNull,[ObjNull]] call BIS_fnc_param; if(isNull _vehicle) exitWith {}; if(isNil {_vehicle getVariable "siren2"}) exitWith {}; For "_i" from 0 to 1 step 0 do { if(!(_vehicle getVariable "siren2")) exitWith {}; if(count (crew (_vehicle)) isEqualTo 0) then {_vehicle setVariable["siren2",false,true]}; if(!alive _vehicle) exitWith {}; if(isNull _vehicle) exitWith {}; _vehicle say3D "Yelp"; sleep 2.0; if(!(_vehicle getVariable "siren2")) exitWith {}; }; Now open Core > functions > fn_keyHandler.sqf Replace //F Key (Yelp & Sirens) case 33: { if(_shift) then { if(playerSide in [west] && {vehicle player != player} && {!life_siren2_active} && {((driver vehicle player) == player)}) then { [] spawn { life_siren2_active = true; sleep 1.2; life_siren2_active = false; }; _veh = vehicle player; if (isNil {_veh getVariable "siren2"}) then {_veh setVariable ["siren2",false,true];}; if ((_veh getVariable "siren2")) then { titleText ["Yelp Off","PLAIN"]; _veh setVariable["siren2",false,true]; } else { titleText ["Yelp On","PLAIN"]; _veh setVariable["siren2",true,true]; [_veh] remoteExec ["life_fnc_copsiren2",RCLIENT]; }; }; }; }; With this //F Key (Yelp & Sirens) case 33: { if(_shift) then { if(playerSide in [west] && {vehicle player != player} && {!life_siren2_active} && {((driver vehicle player) == player)}) then { [] spawn { life_siren2_active = true; sleep 1.2; life_siren2_active = false; }; _veh = vehicle player; if (isNil {_veh getVariable "siren2"}) then {_veh setVariable ["siren2",false,true];}; if ((_veh getVariable "siren2")) then { titleText ["Yelp Off","PLAIN"]; _veh setVariable["siren2",false,true]; } else { titleText ["Yelp On","PLAIN"]; _veh setVariable["siren2",true,true]; [_veh] remoteExec ["life_fnc_copsiren2",RCLIENT]; }; }; }; if (!_shift) then { if (playerSide in [west,independent] && {vehicle player != player} && {!life_siren_active} && {((driver vehicle player) == player)}) then { [] spawn { life_siren_active = true; sleep 4.7; life_siren_active = false; }; _veh = vehicle player; if (isNil {_veh getVariable "siren"}) then {_veh setVariable ["siren",false,true];}; if ((_veh getVariable "siren")) then { titleText [localize "STR_MISC_SirensOFF","PLAIN"]; _veh setVariable ["siren",false,true]; } else { titleText [localize "STR_MISC_SirensON","PLAIN"]; _veh setVariable ["siren",true,true]; if(playerSide isEqualTo west) then { [_veh] remoteExec ["life_fnc_copSiren",RCLIENT]; } else { [_veh] remoteExec ["life_fnc_medicSiren",RCLIENT]; }; }; }; }; }; Now open Core > configuration and under the backend variables add life_siren2_active = false; Now open your sounds folder, download and drop in the attached file Yelp.ogg Now open CfgRemoteExec and add under Client only functions F(life_fnc_copSiren2,CLIENT) Now open description.ext and add under class CfgSounds class Yelp { name = "yelp"; sound[] = {"\sounds\Yelp.ogg", 1.0, 1}; titles[] = {}; }; Now open Functions.hpp and under class Cop add class copSiren2 {}; And you are done
  2. I've uploaded a high quality siren to replace the current version that is included in the Altis Life files, you can edit the siren to your needs there's only a few versions of the different siren modes but you can always chop edit etc. I've also added the mp3 of all the sirens together, just remember to change the timing to match your edit (for the newbies) in your respective files otherwise it will over lap and sound really crappy. Anyway enjoy. Link: https://www.dropbox.com/s/33ub0h7ssal3oth/Rumbler.zip?dl=0
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.