【CS2】cs2-blockmaker cs2-区块实体制造工具 游戏性拓展 开发者相关

我不当学长 管理员组 4天前 64

插件介绍:

  • 用于创建和保存区块的 BlockMaker 插件,主要用于 HNS(躲猫猫模式)

实体块管理可以在 Building 菜单 /BuildMenu 中完成

按住 USE 键抓取块,环顾四周移动,左右键改变距离

按住 RELOAD 按钮并移动鼠标以旋转块

插件依赖:

注意:

配置文件:

{
  "Settings": {
    "Prefix": "{purple}BlockMaker {grey}|",
    "Menu": "html",
    "Building": {
      "BuildMode": true,
      "BuildModeConfig": false,
      "AutoSave": false,
      "SaveTime": 300,
      "BlockGrabColor": "255,255,255,128",
      "BlockSizes": [
        { "Title": "Small", "Size": 0.5 },
        { "Title": "Normal", "Size": 1 },
        { "Title": "Large", "Size": 2 },
        { "Title": "X-Large", "Size": 3 }
      ]
    },
    "Blocks": {
      "DisableShadows": true,
      "CamouflageT": "characters/models/ctm_fbi/ctm_fbi.vmdl",
      "CamouflageCT": "characters/models/tm_leet/tm_leet_variantb.vmdl",
      "FireParticle": "particles/burning_fx/env_fire_medium.vpcf"
    },
    "Teleports": {
      "ForceAngles": false,
      "EntryModel": "models/blockmaker/teleport/model.vmdl",
      "EntryColor": "0,255,0,255",
      "ExitModel": "models/blockmaker/teleport/model.vmdl",
      "ExitColor": "255,0,0,255"
    }
  },
  "Commands": {
    "Admin": {
      "Permission": "@css/root",
      "BuildMode": "buildmode",
      "ManageBuilder": "builder,builders"
    },
    "Building": {
      "BuildMenu": "bm,buildmenu",
      "CreateBlock": "create",
      "DeleteBlock": "delete",
      "RotateBlock": "rotate",
      "PositionBlock": "position",
      "BlockType": "type",
      "BlockColor": "color",
      "CopyBlock": "copy",
      "ConvertBlock": "convert",
      "LockBlock": "lock",
      "SaveBlocks": "save",
      "Snapping": "snap",
      "Grid": "grid",
      "Noclip": "nc",
      "Godmode": "godmode",
      "TestBlock": "testblock"
    }
  },
  "Sounds": {
    "SoundEvents": "soundevents/blockmaker.vsndevts",
    "Blocks": {
      "Speed": { "Event": "speed", "Volume": 1 },
      "Camouflage": { "Event": "camouflage", "Volume": 1 },
      "Damage": { "Event": "damage", "Volume": 1 },
      "Health": { "Event": "health", "Volume": 1 },
      "Invincibility": { "Event": "invincibility", "Volume": 1 },
      "Nuke": { "Event": "nuke", "Volume": 1 },
      "Stealth": { "Event": "stealth", "Volume": 1 },
      "Teleport": { "Event": "teleport", "Volume": 1 }
    },
    "Building": {
      "Enabled": true,
      "Create": { "Event": "create", "Volume": 1 },
      "Delete": { "Event": "delete", "Volume": 1 },
      "Place": { "Event": "place", "Volume": 1 },
      "Rotate": { "Event": "rotate", "Volume": 1 },
      "Save": { "Event": "save", "Volume": 1 }
    }
  }
}

安装方法:

  • 把插件放到服务器的addons/counterstrikesharp/plugins/目录

参考:

 

上传的附件:

CSGO插件分享-申明 1、本网站名称:CSGO插件分享-中文站  网址:https://bbs.csgocn.net
2、本站的宗旨在于为CSGO玩家提供一个插件分享的中文资源平台,多数插件来源于SourceMod论坛,并配以中文介绍和安装教程。
3、欢迎有能力的朋友共享有趣的CSGO插件资源。
4、本站资源大多为百度网盘,如发现链接失效,可以点: 这里进行反馈,我们会第一时间更新。
最新回复 (1)
  • 我不当学长 楼主 管理员组@Ta 4天前 0
    引用 2

    这个插件也涉及了音效功能,相关内容也可以参考:https://bbs.csgocn.net/thread-872.htm

    音效代码(包含gamedata和函数实现):

        "CBaseEntity_EmitSoundParams": {
            "signatures": {
                "library": "server",
                "windows": "48 8B C4 48 89 58 10 48 89 70 18 55 57 41 56 48 8D A8 08 FF FF FF",
                "linux": "48 B8 ? ? ? ? ? ? ? ? 55 48 89 E5 41 55 41 54 49 89 FC 53 48 89 F3"
            }
        },
    
    
        private static MemoryFunctionVoid<CBaseEntity, string, int, float, float> CBaseEntity_EmitSoundParamsFunc = new(GameData.GetSignature("CBaseEntity_EmitSoundParams"));
        public static void EmitSound(this CBaseEntity entity, string soundEventName, float volume = 1f, int pitch = 1, float delay = 1f)
        {
            if (entity is null
            || entity.IsValid is not true
            || string.IsNullOrEmpty(soundEventName) is true
            || CBaseEntity_EmitSoundParamsFunc is null) return;
    
    
            CBaseEntity_EmitSoundParamsFunc.Invoke(entity, soundEventName, pitch, volume, delay);
        }
返回