Skip to content

Commit

Permalink
2023-10-27 update
Browse files Browse the repository at this point in the history
spawn_infected_nolimit v1.0h
  • Loading branch information
fbef0102 committed Oct 26, 2023
1 parent 5cddeae commit 3f5513f
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 23 deletions.
Binary file modified spawn_infected_nolimit/plugins/spawn_infected_nolimit.smx
Binary file not shown.
42 changes: 22 additions & 20 deletions spawn_infected_nolimit/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,13 @@ Spawn special infected without the director limits!
* Image | 圖示
<br/>None

* Apply to | 適用於
```
L4D1
L4D2
```

* <details><summary>Changelog | 版本日誌</summary>

* v1.2.4 (2023-5-10)
* Update API

* v1.2.3 (2023-3-12)
* Create Native API

* v1.2.2
* [Original Plugin by Shadowysn](https://forums.alliedmods.net/showthread.php?t=320849)
</details>

* Require | 必要安裝
<br/>None

* Related Plugin | 相關插件
1. [l4d_together](https://github.com/fbef0102/Game-Private_Plugin/tree/main/l4d_together): A simple anti - runner system , punish the runner by spawn SI behind her.
> 離隊伍太遠的玩家,特感代替月亮懲罰你


* <details><summary>ConVar | 指令</summary>

None
Expand All @@ -57,7 +38,7 @@ Spawn special infected without the director limits!
/**
* @brief Spawn special infected without the director limits!
*
* @param zomb S.I. Name: "tank", "witch", "smoker", "hunter", "boomer"," jockey", "charger", "spitter"
* @param zomb S.I. Name: "tank", "smoker", "hunter", "boomer"," jockey", "charger", "spitter", "witch", "witch_bride"
* @param vecPos Vector coordinate where the special will be spawned
* @param vecAng QAngle where special will be facing
*
Expand All @@ -67,6 +48,27 @@ Spawn special infected without the director limits!
```
</details>

* Apply to | 適用於
```
L4D1
L4D2
```

* <details><summary>Changelog | 版本日誌</summary>

* v1.0h (2023-10-27)
* Add inc file

* v1.2.4 (2023-5-10)
* Update API

* v1.2.3 (2023-3-12)
* Create Native API

* v1.2.2
* [Original Plugin by Shadowysn](https://forums.alliedmods.net/showthread.php?t=320849)
</details>

- - - -
# 中文說明
不受數量與遊戲限制生成特感
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#if defined _spawn_infected_nolimit_included_
#endinput
#endif
#define _spawn_infected_nolimit_included_

/**
* @brief Spawn special infected without the director limits!
*
* @param zomb S.I. Name: "tank", "smoker", "hunter", "boomer"," jockey", "charger", "spitter", "witch", "witch_bride"
* @param vecPos Vector coordinate where the special will be spawned
* @param vecAng QAngle where special will be facing
*
* @return client index of the spawned special infected, -1 if fail to spawn
*/
native int NoLimit_CreateInfected(const char[] zomb, const float vecPos[3], const float vecAng[3]);

public SharedPlugin __pl_spawn_infected_nolimit =
{
name = "spawn_infected_nolimit",
file = "spawn_infected_nolimit.smx",
#if defined REQUIRE_PLUGIN
required = 1,
#else
required = 0,
#endif
};

#if !defined REQUIRE_PLUGIN
public void __pl_spawn_infected_nolimit_SetNTVOptional()
{
MarkNativeAsOptional("NoLimit_CreateInfected");
}
#endif
7 changes: 4 additions & 3 deletions spawn_infected_nolimit/scripting/spawn_infected_nolimit.sp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#define PLUGIN_NAME "[L4D1/2] Manual-Spawn Special Infected"
#define PLUGIN_AUTHOR "Shadowysn, ProdigySim (Major Windows Fix), Harry"
#define PLUGIN_DESC "Spawn special infected without the director limits!"
#define PLUGIN_VERSION "1.2.4"
#define PLUGIN_VERSION "1.0h-2023/10/27"
#define PLUGIN_URL ""
#define PLUGIN_NAME_SHORT "Manual-Spawn Special Infected"
#define PLUGIN_NAME_TECH "spawn_infected_nolimit"
Expand Down Expand Up @@ -102,19 +102,20 @@ public APLRes AskPluginLoad2(Handle myself, bool late, char[] error, int err_max
strcopy(error, err_max, "Plugin only supports Left 4 Dead and Left 4 Dead 2.");
return APLRes_SilentFailure;
}

CreateNative("NoLimit_CreateInfected", Native_CreateInfected);
RegPluginLibrary("spawn_infected_nolimit");
return APLRes_Success;
}

/**
* @brief Spawn special infected without the director limits!
*
* @param zomb S.I. Name: "tank", "witch", "smoker", "hunter", "boomer"," jockey", "charger", "spitter"
* @param zomb S.I. Name: "tank", "smoker", "hunter", "boomer"," jockey", "charger", "spitter", "witch", "witch_bride"
* @param vecPos Vector coordinate where the special will be spawned
* @param vecAng QAngle where special will be facing
*
* @return client index of the spawned special infected, -1 if fail to spawn
* native int NoLimit_CreateInfected(const char[] zomb, const float vecPos[3], const float vecAng[3]);
*/
int Native_CreateInfected(Handle plugin, int numParams)
{
Expand Down

0 comments on commit 3f5513f

Please sign in to comment.