|
@@ -13,11 +13,10 @@
|
|
|
|
|
|
#include <dhooks>
|
|
#include <dhooks>
|
|
#include <sdktools>
|
|
#include <sdktools>
|
|
-#include <stocksoup/log_server>
|
|
|
|
|
|
|
|
#include <stocksoup/tf/econ>
|
|
#include <stocksoup/tf/econ>
|
|
|
|
|
|
-#define PLUGIN_VERSION "1.0.0"
|
|
|
|
|
|
+#define PLUGIN_VERSION "1.0.1"
|
|
public Plugin myinfo = {
|
|
public Plugin myinfo = {
|
|
name = "[CSRD] Bot Taunt Randomizer",
|
|
name = "[CSRD] Bot Taunt Randomizer",
|
|
author = "nosoop",
|
|
author = "nosoop",
|
|
@@ -96,7 +95,7 @@ public MRESReturn OnHandleTauntCommand(int client, Handle hParams) {
|
|
return MRES_Ignored;
|
|
return MRES_Ignored;
|
|
}
|
|
}
|
|
|
|
|
|
- // 90% chance of using a taunt item
|
|
|
|
|
|
+ // 90% chance of using a taunt item (10% chance default taunt)
|
|
if (GetURandomFloat() > 0.90) {
|
|
if (GetURandomFloat() > 0.90) {
|
|
return MRES_Ignored;
|
|
return MRES_Ignored;
|
|
}
|
|
}
|
|
@@ -117,8 +116,8 @@ public MRESReturn OnPlayTauntSceneFromItem(int client, Handle hReturn, Handle hP
|
|
return MRES_Ignored;
|
|
return MRES_Ignored;
|
|
}
|
|
}
|
|
|
|
|
|
- int item = DHookGetParam(hParams, 1);
|
|
|
|
- if (item) {
|
|
|
|
|
|
+ Address pEconItemView = DHookGetParam(hParams, 1);
|
|
|
|
+ if (pEconItemView) {
|
|
return MRES_Ignored;
|
|
return MRES_Ignored;
|
|
}
|
|
}
|
|
|
|
|