BSP Compat - Make maps compatible with your mod

Post Reply
greenie
Full Member
Full Member
Posts: 1815
Joined: Sun Nov 21, 2021 4:55 pm
Jucator SA:MP ?: Nu
Nick:: greenie
Jucator CS ?: Nu

BSP Compat - Make maps compatible with your mod

Post by greenie »

Sometimes you want to play a map from other mods but that maps are unable to run correctly because it uses entities not available in your prefered mod.

This plugin will convert those entity types to a selected type available in the running mod.

With this plugin you can not only rename those entities, they will be created using the related class objects (ie: func_breakable = CBreakable)

Signatures for linux and windows included in zip file.

If anyone need another kind of patching for maps, just tell me in this post and I'll check how can be included into this plugin


Here's a useful example:

On TFC, spawn point entities is called info_player_teamspawn but in CS should be named info_player_start




Requirements
AmxModX
Orpheu

Cvars
bsp_classrename ( 1 | 0 )
If setting value to "1", entities will have it's classname renamed to the real classname.
Also EV_SZ_message (pev_message) will contain the original classname.

Config File


There's a file to setup entity renaming. This file is called bsp_compat.ini and should be inside amxmodx/configs folder.

The format is one line for each replacement and defined as
original-class-name:final-class-name
Known and unknown entities can be used as original-class-name


Custom Entity


GoldSrc Engine comes with a predefined "custom" classname for unknown entities. If gamedll defines it, it will be used as a replacement for unknown entities.

The provided config file comes with "custom" defined as "info_target" entity.

get plugin or get source

bsp_compat.ini

bsp_compat.zip
Post Reply

Return to “Admin Commands”