Author Topic: City RP - Banned Events  (Read 844 times)

I am using Iban's City RP. I know that in preferences in the City RP folder there is a section with banned events. I was wondering how to add these events to the ones you can't use:
OnActivate - Minigame - (ChatMsgAll, BottomPrintAll, CenterPrintAll) - (Message here)

Preferences folder:
// ============================================================
// Section 9 : Banned Events
// ============================================================
// $CityRPG::bannedEvent[nameSpace, name] = true; results in ban
// Note: This system is archaic.

// AIPlayer
$CityRPG::bannedEvent["AIPlayer", "setPlayerScale"] = true;

// fxDTSBrick
$CityRPG::bannedEvent["fxDTSBrick", "spawnExplosion"] = true;
$CityRPG::bannedEvent["fxDTSBrick", "spawnProjectile"] = true;

// gameConnection
$CityRPG::bannedEvent["gameConnection", "bottomPrint"] = true;
$CityRPG::bannedEvent["gameConnection", "incScore"] = true;
$CityRPG::bannedEvent["gameConnection", "instantRespawn"] = true;

// Player
$CityRPG::bannedEvent["Player", "addHealth"] = true;
$CityRPG::bannedEvent["Player", "addVelocity"] = true;
$CityRPG::bannedEvent["Player", "changeDatablock"] = true;
$CityRPG::bannedEvent["Player", "clearTools"] = true;
$CityRPG::bannedEvent["Player", "kill"] = true;
$CityRPG::bannedEvent["Player", "setHealth"] = true;
$CityRPG::bannedEvent["Player", "setPlayerScale"] = true;
$CityRPG::bannedEvent["Player", "spawnExplosion"] = true;
$CityRPG::bannedEvent["Player", "spawnProjectile"] = true;
$CityRPG::bannedEvent["Player", "setVelocity"] = true;

I have tried these without any luck:
- $CityRPG::bannedEvent["Player", "ChatMsgAll"] = true;
- $CityRPG::bannedEvent["Minigame", "ChatMsgAll"] = true; (^Both under the "// Player" part^)
- // Minigame
  $CityRPG::bannedEvent["Minigame", "ChatMsgAll"] = true; (For this, I tried making a new section called "Minigame" since there was a "Player" section)

I'm 97% certain there is no magic that makes it work by changing a global pref.

There has to be some sort of package for each one that disables it.

I'm 97% certain there is no magic that makes it work by changing a global pref.

There has to be some sort of package for each one that disables it.
So you don't know what to do?

There has to be some sort of package for each one that disables it.

There has to be some sort of package for each one that disables it.
What does that mean?

Try exploring package.cs.

Try exploring package.cs.
This was no help. You have to tell me what I am looking for/what I should do. And try to explain like I am absolutely handicapped.

Add these lines to ban the events:
Code: [Select]
$CityRPG::bannedEvent["Minigame","chatMsgAll"] = true;
$CityRPG::bannedEvent["Minigame","bottomPrintAll"] = true;
$CityRPG::bannedEvent["Minigame","centerPrintAll"] = true;

I'm 97% certain there is no magic that makes it work by changing a global pref.
Just by that piece of code he posted I'm pretty sure that it does work like that.

Iban may have not implemented blocking for minigame events, which is why it wouldn't work.

Forget what I just posted... I was thinking of something else and I didn't see the end of the OP.

I'm trying to find in the code where Iban actually takes those prefs and uses them.
All I can find is a forgetload of things in package.cs

i'm trying to find a City RPG download, period.