1 Star 0 Fork 0

NayoAyo/Zombie-Plague

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
zbm3_hclasses_swat.sp 3.21 KB
一键复制 编辑 原始数据 按行查看 历史
Nikita Ushakov 提交于 2018-10-16 04:15 . 8.4.0
/**
* ============================================================================
*
* Zombie Plague Mod #3 Generation
*
*
* Copyright (C) 2015-2018 Nikita Ushakov (Ireland, Dublin)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* ============================================================================
**/
#include <sourcemod>
#include <sdktools>
#include <zombieplague>
#pragma newdecls required
/**
* Record plugin info.
**/
public Plugin myinfo =
{
name = "[ZP] Human Class: SWAT",
author = "qubka (Nikita Ushakov)",
description = "Addon of human classes",
version = "1.0",
url = "https://forums.alliedmods.net/showthread.php?t=290657"
}
/**
* @section Information about human class.
**/
#define HUMAN_CLASS_NAME "swat" // Only will be taken from translation file
#define HUMAN_CLASS_INFO "" // Only will be taken from translation file ("" - disabled)
#define HUMAN_CLASS_MODEL "models/player/ctm_swat.mdl"
#define HUMAN_CLASS_ARM "models/player/custom_player/zombie/arms/male_arms.mdl"
#define HUMAN_CLASS_VIEW {0, -1}
#define HUMAN_CLASS_HEALTH 100
#define HUMAN_CLASS_SPEED 1.0
#define HUMAN_CLASS_GRAVITY 0.9
#define HUMAN_CLASS_ARMOR 0
#define HUMAN_CLASS_LEVEL 1
#define HUMAN_CLASS_GROUP ""
#define HUMAN_CLASS_DURATION 0.0
#define HUMAN_CLASS_COUNTDOWN 0.0
#define HUMAN_CLASS_SOUND_DEATH "HUMAN_DEATH_SOUNDS"
#define HUMAN_CLASS_SOUND_HURT "HUMAN_HURT_SOUNDS"
#define HUMAN_CLASS_SOUND_INFECT "HUMAN_INFECTION_SOUNDS"
/**
* @endsection
**/
// Initialize human class index
int gHuman;
#pragma unused gHuman
/**
* Called after a library is added that the current plugin references optionally.
* A library is either a plugin name or extension name, as exposed via its include file.
**/
public void OnLibraryAdded(const char[] sLibrary)
{
// Validate library
if(!strcmp(sLibrary, "zombieplague", false))
{
// Initialize human class
gHuman = ZP_RegisterHumanClass(HUMAN_CLASS_NAME,
HUMAN_CLASS_INFO,
HUMAN_CLASS_MODEL,
HUMAN_CLASS_ARM,
HUMAN_CLASS_VIEW,
HUMAN_CLASS_HEALTH,
HUMAN_CLASS_SPEED,
HUMAN_CLASS_GRAVITY,
HUMAN_CLASS_ARMOR,
HUMAN_CLASS_LEVEL,
HUMAN_CLASS_GROUP,
HUMAN_CLASS_DURATION,
HUMAN_CLASS_COUNTDOWN,
HUMAN_CLASS_SOUND_DEATH,
HUMAN_CLASS_SOUND_HURT,
HUMAN_CLASS_SOUND_INFECT);
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ysllll/Zombie-Plague.git
git@gitee.com:ysllll/Zombie-Plague.git
ysllll
Zombie-Plague
Zombie-Plague
master

搜索帮助