Hi all I have the lfs lapper and recently wondered about reconfiguring it to be some sort of cops and robbers mod.
Im not a coder/programmer etc but this kind of adjustments is good for learning basic command strings in LFS/insim without the need for recompiling etc.
robbers can type *rob1-6 to commit different crimes, and the police have 4 command to use to respond to crimes.
anybody can use any command of course as there is no auth on the police commands as yet.
Im not even sure if im allowed to redistribute the lapper as a police mod so hopefully u guys can tell me, but basically i made the following changes to autoactions
AutoAction = hoho|/pm ^3What's so funny, {Nickname}?|
unnamed|/pm no name no game:/kick unnamed|
*test|/rcm {Nickname} is testing...:/rcm_ply {Nickname}|
*license@Gai-Luron|/license {*}|
*ban@Gai-Luron|/ban {*} 1|
*kick@Gai-Luron|/kick {*}|*chase|/rcm ^3*^4*^7POLICE^3*^4* ^1PULL OVER! ^3*^4*^7POLICE^3*^4*^9:/rcm_all:/msg ^7Pursuit in progress:|*lost|/rcm ^3*^4*^7POLICE^3*^4* ^2SUSPECT LOST ^3*^4*^7POLICE^3*^4*:/rcm_all:/msg ^7susepect has evaded capture:|*catch|/rcm ^3*^4*^7POLICE^3*^4* ^2SUSPECT STOPPED ^3*^4*^7POLICE^3*^4*:/rcm_all:/msg ^7suspect has been captured:|*popo|/rcm {Nickname}^1Requires Police Assist:/rcm_all:/msg ^3{Nickname} Requires help|*rob1|/rcm {Nickname} ^1Is A Car Thief :/rcm_all:/msg ^7Car Theft Alert|*rob2|/rcm {Nickname} ^1Seen Selling Drugs:/rcm_all:/msg ^7Drug Dealer Alert|*rob3|/rcm {Nickname} ^1Stole Tyres From Pits:/rcm_all:/msg ^7Tyre Thief Alert!|*rob4|/rcm {Nickname} ^1Mugged an old lady:/rcm_all:/msg ^7Old lady injured!|*rob5|/rcm {Nickname} ^1Unpaid parking tickets ^^:/rcm_all:/msg ^7Fine Avoider Alert!|*rob6|/rcm {Nickname} ^1Held Up the kwik-e-mart:/rcm_all:/msg ^7Apu the shopkeeper reports!|*omg|/rcm {Nickname} ^1Smashed Officers windows:/rcm_all:/msg ^7OMG Your gonna pay fo that {Nickname}!|*duty|/rcm {Nickname} ^7Is attending the Scene:/rcm_all:/msg {Nickname} ^3Is attending the scene|
and the following changes to auto private command list:
AutoMsgPrivate =
*ver|/ver|
*auth|/auth|
*cleanspb:!razspb|/cleanspb|
*spb|/spb|
*hand|/hand {*}|
*statsqual|/statsqual {*}|
*dstats|/dstats {*}|
*stats|/stats {*}|
*nearqual|/nearqual {*}|
*near|/near {*}|
*topqual|/topqual {*}|
*top|/top {*}|
*drf|/drf {*}|
*distance|Distance done on {Car}/{ShortTrackName} = {Dist}, session = {SessDist}|
*laps|Laps done on {Car}/{ShortTrackName} = {Laps}, session = {SessLaps}|
*pit|Time in pitting {TotalPitTime}|
*track|Track in use {colon} {ShortTrackName} = {LongTrackName}|
*time|Server time clock reference {colon} {LongTime}|
*crimes|
^2Crimes list:
^3*rob1 ^6Commit car theft:
^3*rob2 ^6Commit drug dealing:
^3*rob3 ^6Commit tyre theft:
^3*rob4 ^6Mug an old lady:
^3*rob5 ^6Admit unpaid parking tickets:
^3*rob6 ^6Rob the kwik-e-mart:
^3*omg ^6Break Officers Windows: ^3*popo ^6Call for assistance: ^2Police list: ^3*chase ^6Triggers chase sequence: ^3*catch ^6Triggers caught sequence: ^3*lost ^6Triggers lost suspect sequence: ^3*duty ^6Trigger attending sequence:
;
You will notice i prefixed the commands with a * instead of a !, this is to allow the mod to work alongside any other mods that by default use the ! prefix for commands.
Therefore being able to run 2 insim mods sideby side.
A post somewre i think somebosy said only 1 insim mod can run on 1 server, this is not true, i can run 3 insim mods on 1 server, no conflictions.
Its quite fun mod for a DEMO server that is getting a bit boring.
I disabled the drf points and lap times score etc but hese do not need to be disabled.
Lemme know what you think?
If i am allowed to do so I will post the config file here for ppl who want to use it.
You expert coders here may read this and think wow this is just a noob addon with RCM commands, and you willl be right ^ ^
I aim this at demo server hosters. with no coding knowledge and tools, jus simple edit of config files.
Feel free to pm me or espond here if u have any qeustions. And by all means fee free to post changes you think may be cool or benefit the mod.
I think a good addition would be if a cop could join the server and the tye !login COPNAME PASSWORD
and then could secure the cop commands for cop use only. I know there is a auth system but this would mean making the whole auto action section over and over in each users name eg cop1 cop2 etc.
can anybody see an easier way around this?
SO as not to fill the file up too much.
Ideally a login and pass system would be good, but is that even possible to implement without getting into adding source and recompiling ?
I would like to add thanx to Gai-Luron for creating the lapper in the 1st place, its brilliant, and with a little common sense even the laymen can understand it and change things.
Im not a coder/programmer etc but this kind of adjustments is good for learning basic command strings in LFS/insim without the need for recompiling etc.
robbers can type *rob1-6 to commit different crimes, and the police have 4 command to use to respond to crimes.
anybody can use any command of course as there is no auth on the police commands as yet.
Im not even sure if im allowed to redistribute the lapper as a police mod so hopefully u guys can tell me, but basically i made the following changes to autoactions
AutoAction = hoho|/pm ^3What's so funny, {Nickname}?|
unnamed|/pm no name no game:/kick unnamed|
*test|/rcm {Nickname} is testing...:/rcm_ply {Nickname}|
*license@Gai-Luron|/license {*}|
*ban@Gai-Luron|/ban {*} 1|
*kick@Gai-Luron|/kick {*}|*chase|/rcm ^3*^4*^7POLICE^3*^4* ^1PULL OVER! ^3*^4*^7POLICE^3*^4*^9:/rcm_all:/msg ^7Pursuit in progress:|*lost|/rcm ^3*^4*^7POLICE^3*^4* ^2SUSPECT LOST ^3*^4*^7POLICE^3*^4*:/rcm_all:/msg ^7susepect has evaded capture:|*catch|/rcm ^3*^4*^7POLICE^3*^4* ^2SUSPECT STOPPED ^3*^4*^7POLICE^3*^4*:/rcm_all:/msg ^7suspect has been captured:|*popo|/rcm {Nickname}^1Requires Police Assist:/rcm_all:/msg ^3{Nickname} Requires help|*rob1|/rcm {Nickname} ^1Is A Car Thief :/rcm_all:/msg ^7Car Theft Alert|*rob2|/rcm {Nickname} ^1Seen Selling Drugs:/rcm_all:/msg ^7Drug Dealer Alert|*rob3|/rcm {Nickname} ^1Stole Tyres From Pits:/rcm_all:/msg ^7Tyre Thief Alert!|*rob4|/rcm {Nickname} ^1Mugged an old lady:/rcm_all:/msg ^7Old lady injured!|*rob5|/rcm {Nickname} ^1Unpaid parking tickets ^^:/rcm_all:/msg ^7Fine Avoider Alert!|*rob6|/rcm {Nickname} ^1Held Up the kwik-e-mart:/rcm_all:/msg ^7Apu the shopkeeper reports!|*omg|/rcm {Nickname} ^1Smashed Officers windows:/rcm_all:/msg ^7OMG Your gonna pay fo that {Nickname}!|*duty|/rcm {Nickname} ^7Is attending the Scene:/rcm_all:/msg {Nickname} ^3Is attending the scene|
and the following changes to auto private command list:
AutoMsgPrivate =
*ver|/ver|
*auth|/auth|
*cleanspb:!razspb|/cleanspb|
*spb|/spb|
*hand|/hand {*}|
*statsqual|/statsqual {*}|
*dstats|/dstats {*}|
*stats|/stats {*}|
*nearqual|/nearqual {*}|
*near|/near {*}|
*topqual|/topqual {*}|
*top|/top {*}|
*drf|/drf {*}|
*distance|Distance done on {Car}/{ShortTrackName} = {Dist}, session = {SessDist}|
*laps|Laps done on {Car}/{ShortTrackName} = {Laps}, session = {SessLaps}|
*pit|Time in pitting {TotalPitTime}|
*track|Track in use {colon} {ShortTrackName} = {LongTrackName}|
*time|Server time clock reference {colon} {LongTime}|
*crimes|
^2Crimes list:
^3*rob1 ^6Commit car theft:
^3*rob2 ^6Commit drug dealing:
^3*rob3 ^6Commit tyre theft:
^3*rob4 ^6Mug an old lady:
^3*rob5 ^6Admit unpaid parking tickets:
^3*rob6 ^6Rob the kwik-e-mart:
^3*omg ^6Break Officers Windows: ^3*popo ^6Call for assistance: ^2Police list: ^3*chase ^6Triggers chase sequence: ^3*catch ^6Triggers caught sequence: ^3*lost ^6Triggers lost suspect sequence: ^3*duty ^6Trigger attending sequence:
;
You will notice i prefixed the commands with a * instead of a !, this is to allow the mod to work alongside any other mods that by default use the ! prefix for commands.
Therefore being able to run 2 insim mods sideby side.
A post somewre i think somebosy said only 1 insim mod can run on 1 server, this is not true, i can run 3 insim mods on 1 server, no conflictions.
Its quite fun mod for a DEMO server that is getting a bit boring.
I disabled the drf points and lap times score etc but hese do not need to be disabled.
Lemme know what you think?
If i am allowed to do so I will post the config file here for ppl who want to use it.
You expert coders here may read this and think wow this is just a noob addon with RCM commands, and you willl be right ^ ^
I aim this at demo server hosters. with no coding knowledge and tools, jus simple edit of config files.
Feel free to pm me or espond here if u have any qeustions. And by all means fee free to post changes you think may be cool or benefit the mod.
I think a good addition would be if a cop could join the server and the tye !login COPNAME PASSWORD
and then could secure the cop commands for cop use only. I know there is a auth system but this would mean making the whole auto action section over and over in each users name eg cop1 cop2 etc.
can anybody see an easier way around this?
SO as not to fill the file up too much.
Ideally a login and pass system would be good, but is that even possible to implement without getting into adding source and recompiling ?
I would like to add thanx to Gai-Luron for creating the lapper in the 1st place, its brilliant, and with a little common sense even the laymen can understand it and change things.