Raised This Month: $32 Target: $400
 8% 

Showing results 1 to 25 of 57
Search took 0.00 seconds.
Search: Posts Made By: Morning
Forum: Scripting 02-22-2024, 03:48
Replies: 0
Views: 332
Posted By Morning
[L4D2]How do you spawn a breakable wooden crate?

I use a pretty basic function to spawn in physics props within my plugins. It's not the most elegant method, but it's been enough for what I want up until now:

public Action:spawnpropangle(char...
Forum: Plugins 02-02-2024, 08:13
Replies: 149
Views: 49,157
Posted By Morning
Re: [L4D & L4D2] Target Override (2.28) [20-Jan-2024]

Brilliant! Thanks so much for this :twisted:
Forum: Scripting 01-26-2024, 06:35
Replies: 1
Views: 366
Posted By Morning
[L4D2]Database not connecting until player connects

I'm connecting to mysql database using threaded connection OnPluginStart(). In my connect callback, I have function to retreive some test data with SQL_TQuery which inserts into some global vars and...
Forum: Plugins 01-17-2024, 06:39
Replies: 149
Views: 49,157
Posted By Morning
Re: [L4D & L4D2] Target Override (2.27) [05-Sep-2023]

Is there a way to make the tank treat players on the mounted gun with the same priority as normal survivors? Currently if players jump on the gun, they can get tanks to stop chasing them (order...
Forum: Scripting 06-06-2023, 19:41
Replies: 2
Views: 404
Posted By Morning
Re: [L4D2]How do I get text overlay on players/entities?

Yes, i'm using env_instructor_hint at the moment, but I want to parent it to the player and make it follow them as they move around the screen. I'm not sure how to do that. Here is my current code...
Forum: Scripting 06-06-2023, 10:48
Replies: 2
Views: 404
Posted By Morning
[L4D2]How do I get text overlay on players/entities?

It's hard to describe the exact text I mean, but it's basically the same text as the player names that hover over your teammates in game. Not really part of the HUD so to speak, but dynamic text that...
Forum: Scripting 05-18-2023, 12:12
Replies: 2
Views: 506
Posted By Morning
Re: [L4D2]how can I stop a command appearing in sm_help?

haha not exactly what I asked but works like a charm, thankyou. :bee:
Forum: Scripting 05-17-2023, 11:04
Replies: 2
Views: 506
Posted By Morning
[L4D2]how can I stop a command appearing in sm_help?

I'm just looking to prevent a command from appearing when a player uses sm_help. I want to keep the command available, but stop people finding it. I noticed the function takes flags, but can't find...
Forum: Scripting 05-16-2023, 12:37
Replies: 1
Views: 446
Posted By Morning
Re: [CSGO] Send Logs to Remote Server

If you're running on linux can you write a shell script to rsync your logs dir to a remote machine? I'm not sure if what you're asking is possible in sourcemod.
Forum: Scripting 05-16-2023, 12:30
Replies: 1
Views: 439
Posted By Morning
[L4D2]Is there a way to add kick reasons in the sourcemod config?

Basically I just want to add some kick reasons to the sourcemod admin menu (similar to banreasons.txt). It's just to show the player why they were kicked instead of just "kicked by administrator".
...
Forum: Scripting 03-30-2023, 06:47
Replies: 6
Views: 992
Posted By Morning
Re: [L4D2]How can I use a cheat command?

Ahh yes I found the function there, thanks a lot! :avast:

void ExecuteCheatCommand(const char[] command, const char[] value = "")
{
int flags = GetCommandFlags(command);...
Forum: Scripting 03-28-2023, 12:46
Replies: 6
Views: 992
Posted By Morning
Re: [L4D2]How can I use a cheat command?

No I have a dedicated server which is running SourceMod. I want to the run the command using a function like ServerCommand or something similar.

I would do the edits to my plugin rather than...
Forum: Scripting 03-28-2023, 09:48
Replies: 6
Views: 992
Posted By Morning
Re: [L4D2]How can I use a cheat command?

Holy crap these tools look amazing! Yeah it looks like I will need to rename a few but that's cool. Thanks a lot! :)

edit: "sm_e nb_delete_all" prints "Command can only be used in game on a...
Forum: Scripting 03-28-2023, 07:12
Replies: 6
Views: 992
Posted By Morning
[L4D2]How can I use a cheat command?

To change a "cheat" convar, from within a sourcemod plugin, I can easily use the "sm_cvar". Is there a command which will let me use a "cheat" command?

The specific command I want to use is...
Forum: Scripting 03-21-2023, 05:41
Replies: 5
Views: 946
Posted By Morning
Re: [ANY]How can I use userid to store and retreive a variable?

This looks exactly like what I am looking for! Thanks so much for the help! :twisted:
Forum: Scripting 03-20-2023, 08:33
Replies: 5
Views: 946
Posted By Morning
Re: [ANY]How can I use userid to store and retreive a variable?

Currently one reason is for storing session stats which just get reset / discarded at the end of the session and not stored in database - I'm running L4D2, and a campaign session usually consists of...
Forum: Scripting 03-18-2023, 14:51
Replies: 5
Views: 946
Posted By Morning
[ANY]How can I use userid to store and retreive a variable?

I want to store a variable for a player, but I want to access it across map changes. At the moment I am using client as an array index, but it can change.

From my understanding, a player userid...
Forum: Scripting 01-27-2023, 20:35
Replies: 2
Views: 665
Posted By Morning
Re: [L4D2]How can I check that a teleport won't fail or correct a failed teleport?

I ended up using this modified from line-of-sight teleporting to check if it's safe, though the teleport still errors if it intersects a player. It's good enough for what I need, thanks a lot for the...
Forum: Scripting 01-27-2023, 07:44
Replies: 2
Views: 665
Posted By Morning
[L4D2]How can I check that a teleport won't fail or correct a failed teleport?

I'm using teleport (https://sm.alliedmods.net/new-api/sdktools_functions/TeleportEntity) to move witches after spawning them. My problem is that I want to move them to a point within an area around...
Forum: Scripting 01-23-2023, 15:57
Replies: 1
Views: 679
Posted By Morning
Re: [L4D2]Sometimes my DB stats are being wiped, am I using the wrong forwards?

Just in case this post is happened upon in future, what fixed it for me was to also reset to 0, the client DB primary key in function ResetTotalStats. I'm guessing that sometime, somewhere, the...
Forum: Scripting 12-28-2022, 07:03
Replies: 1
Views: 679
Posted By Morning
[L4D2]Sometimes my DB stats are being wiped, am I using the wrong forwards?

There is a problem somewhere in my stats / databasing code which is causing individual player stats to be erased from the database. It's a fairly rare problem, happening once in a few days, so it...
Forum: General 12-22-2022, 19:56
Replies: 3
Views: 944
Posted By Morning
Re: [L4D2]Can SDKHooks have plugin conflicts?

Right, thanks that's useful to know for the future!

I'll try using SDKHook_OnTakeDamagePost. :up:
Forum: General 12-22-2022, 15:49
Replies: 3
Views: 944
Posted By Morning
[L4D2]Can SDKHooks have plugin conflicts?

I'm trying to make some var changes when players shoot teammates. I'm running another plugin which blocks damage (prevention of friendly fire). Is it safe to hook OnTakeDamage and use it in another...
Forum: Scripting 12-16-2022, 10:38
Replies: 2
Views: 677
Posted By Morning
Re: [L4D2]Is invisibility to bots possible?

this looks amazing, thanks :)
Forum: Scripting 12-15-2022, 16:49
Replies: 2
Views: 677
Posted By Morning
[L4D2]Is invisibility to bots possible?

I was wondering if anyone knows if it's possible to make a player invisible to bots from the other team.

My use case:

I would like multiple tank zombies to target just one player, but the bot...
Showing results 1 to 25 of 57

 
Forum Jump

All times are GMT -4. The time now is 05:13.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode