mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-06 19:13:21 +00:00
Minor improvements
This commit is contained in:
parent
7d3f8b604a
commit
65a3af9ae0
5 changed files with 7 additions and 7 deletions
Binary file not shown.
Binary file not shown.
|
@ -46,14 +46,14 @@ public void OnEntityCreated(int entity, const char[] classname) {
|
||||||
if(StrEqual(classname, "infected", false))
|
if(StrEqual(classname, "infected", false))
|
||||||
SDKHook(entity, SDKHook_OnTakeDamageAlive, NerfGun_OnTakeDamage);
|
SDKHook(entity, SDKHook_OnTakeDamageAlive, NerfGun_OnTakeDamage);
|
||||||
else if(StrEqual(classname, "prop_physics")) {
|
else if(StrEqual(classname, "prop_physics")) {
|
||||||
char model[64];
|
/*char model[64];
|
||||||
GetEntPropString(entity, Prop_Data, "m_ModelName", model, sizeof(model));
|
GetEntPropString(entity, Prop_Data, "m_ModelName", model, sizeof(model));
|
||||||
for(int i = 0; i < CAR_MODEL_COUNT; i++) {
|
for(int i = 0; i < CAR_MODEL_COUNT; i++) {
|
||||||
if(StrEqual(CAR_MODELS[i], model)) {
|
if(StrEqual(CAR_MODELS[i], model)) {
|
||||||
HookSingleEntityOutput(entity, "OnHitByTank", OnCarHitByTank);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
|
HookSingleEntityOutput(entity, "OnHitByTank", OnCarHitByTank);
|
||||||
} else if(StrEqual(classname, "prop_car_alarm")) {
|
} else if(StrEqual(classname, "prop_car_alarm")) {
|
||||||
HookSingleEntityOutput(entity, "OnHitByTank", OnCarHitByTank);
|
HookSingleEntityOutput(entity, "OnHitByTank", OnCarHitByTank);
|
||||||
} else if(StrEqual(classname, "tank_rock") || StrContains(classname, "_projectile", true) > -1 ) {
|
} else if(StrEqual(classname, "tank_rock") || StrContains(classname, "_projectile", true) > -1 ) {
|
||||||
|
|
|
@ -26,7 +26,7 @@ void SetupTrolls() {
|
||||||
// Tied to: ProjectileMagnetType
|
// Tied to: ProjectileMagnetType
|
||||||
Trolls[index].AddFlag("Infected (rocks/goo)", true);
|
Trolls[index].AddFlag("Infected (rocks/goo)", true);
|
||||||
Trolls[index].AddFlag("Teammates (grenades)", false);
|
Trolls[index].AddFlag("Teammates (grenades)", false);
|
||||||
Trolls[index].AddFlag("Thrown Cars (wip)", false);
|
Trolls[index].AddFlag("Thrown Tank Objects", false);
|
||||||
|
|
||||||
/// CATEGORY: Infected
|
/// CATEGORY: Infected
|
||||||
SetCategory("Infected");
|
SetCategory("Infected");
|
||||||
|
|
|
@ -237,7 +237,7 @@ public void DB_FindNotes(Database db, DBResultSet results, const char[] error, a
|
||||||
int client = GetClientOfUserId(data);
|
int client = GetClientOfUserId(data);
|
||||||
if(client > 0 && results.RowCount > 0) {
|
if(client > 0 && results.RowCount > 0) {
|
||||||
static char noteCreator[32];
|
static char noteCreator[32];
|
||||||
PrintChatToAdmins("Notes for %N", client);
|
PrintChatToAdmins("> Notes for %N", client);
|
||||||
while(results.FetchRow()) {
|
while(results.FetchRow()) {
|
||||||
results.FetchString(0, reason, sizeof(reason));
|
results.FetchString(0, reason, sizeof(reason));
|
||||||
results.FetchString(1, noteCreator, sizeof(noteCreator));
|
results.FetchString(1, noteCreator, sizeof(noteCreator));
|
||||||
|
@ -262,9 +262,9 @@ public void DB_ListNotesForPlayer(Database db, DBResultSet results, const char[]
|
||||||
if(client > 0) {
|
if(client > 0) {
|
||||||
if(results.RowCount > 0) {
|
if(results.RowCount > 0) {
|
||||||
if(target > 0) {
|
if(target > 0) {
|
||||||
PrintToChat(client, "Notes for %N:", target);
|
PrintToChat(client, "> Notes for %N:", target);
|
||||||
} else {
|
} else {
|
||||||
PrintToChat(client, "Notes for %s:", auth);
|
PrintToChat(client, "> Notes for %s:", auth);
|
||||||
}
|
}
|
||||||
char noteCreator[32];
|
char noteCreator[32];
|
||||||
while(results.FetchRow()) {
|
while(results.FetchRow()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue