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

Showing results 1 to 25 of 77
Search took 0.01 seconds.
Search: Posts Made By: Balimbanana
Forum: Scripting 12-09-2020, 01:23
Replies: 2
Views: 1,997
Posted By Balimbanana
Re: [CS:GO] How to work with Entities?

I don't have too much experience working with the glow functions of CS:GO, but from other games, it should be similar.

As answers to the questions:
1: No, indexes are automatically adjusted when...
Forum: Scripting 12-09-2020, 00:52
Replies: 4
Views: 1,120
Posted By Balimbanana
Re: L4D1 How to get weapon's BACKUP ammo?

m_iExtraPrimaryAmmo is always 0 while clients hold the weapon, it is instead stored in m_iAmmo at offset indexes.
As soon as a client drops a weapon, it then transfers the m_iAmmo value at the...
Forum: Scripting 12-05-2020, 10:34
Replies: 7
Views: 2,632
Posted By Balimbanana
Re: PrintToChatAll translation

I think you need to add the LoadTranslations to OnPluginStart, not OnMapStart. Also, I am not entirely sure if CPrintToChatAll has as good functionality for translations, you might have to do a for...
Forum: Scripting 12-03-2020, 01:09
Replies: 11
Views: 2,986
Posted By Balimbanana
Re: I need help in (player_disconnect)

I have been able to get normal responses in the "reason" from the event "player_disconnect"
You must have a plugin that is overwriting the disconnect reason. If a plugin hooks "player_disconnect"...
Forum: Scripting 12-02-2020, 12:09
Replies: 11
Views: 2,986
Posted By Balimbanana
Re: I need help in (player_disconnect)

You could always try running on the server developer 4 and join, then disconnect, it will show each of the events running and the I/O. You will want to change it back to 0 right after as it is a bit...
Forum: Scripting 11-25-2020, 15:26
Replies: 4
Views: 1,090
Posted By Balimbanana
Re: [SourceMod]Issue in GetClientIP

I am not too sure why that specific plugin would go through extra lengths to resolve the actual IP though.
What it looks like is an SM specific issue, not MM or SRCDS.
All those returns were at the...
Forum: Scripting 11-25-2020, 15:09
Replies: 4
Views: 1,090
Posted By Balimbanana
Re: [SourceMod]Issue in GetClientIP

My guess at this point would be that SourceMod is getting the IP before it is resolved:...
Forum: Scripting 11-25-2020, 03:42
Replies: 4
Views: 1,090
Posted By Balimbanana
[SourceMod]Issue in GetClientIP

Is there another method to GetClientIP?
In this situation, a larger server host is hosting several servers in a data center with port triggering through multiple routes to get supposedly lower...
Forum: Scripting 11-17-2020, 01:40
Replies: 4
Views: 739
Posted By Balimbanana
Re: [TF2] Repeat_Timer script help

Oh, I was thinking that somehow the client that was passed to the timer was not looping correctly.

To get the debt var to count for all players you could just make it indexed like the g_wait is.
...
Forum: Scripting 11-17-2020, 00:04
Replies: 4
Views: 739
Posted By Balimbanana
Re: [TF2] Repeat_Timer script help

You could potentially create the timer in each run, and set TIMER_FLAG_NO_MAPCHANGE

...
if(index == 232 && buttons & IN_ATTACK2 && g_wait[client] == false)
{
g_wait[client] = true;...
Forum: General 11-15-2020, 16:59
Replies: 2
Views: 1,007
Posted By Balimbanana
Re: [HELP] All of my server's plugins broken except admin

What are the paths relative to TeamFortress to where you are installing it?
Also, what comes up for these:
meta list
sm exts list
Forum: General 11-11-2020, 12:33
Replies: 2
Views: 1,063
Posted By Balimbanana
Re: how to change the custom map folder?

It depends on what game you are wanting this for, but there should be CVars like mapcyclefile which you can define for each forked server.
In whichever game this is for, on the dedicated server...
Forum: Scripting 11-11-2020, 12:28
Replies: 3
Views: 1,024
Posted By Balimbanana
Re: Give client targetname

Also depending on how it is handled, sending a DispatchKeyValue to an already spawned entity may not apply correctly. You could set it on player spawn if it doesn't work, then if it still won't...
Forum: Scripting 09-16-2020, 15:07
Replies: 1
Views: 1,170
Posted By Balimbanana
Re: Changing loaded material parameters on-the-fly

You won't be able to modify decals, but you *can* modify certain material variables on entities using a material_modify_control:

@PointClass base(Parentname, Targetname) size(-8 -8 -8, 8 8 8 ) =...
Forum: Scripting 07-08-2020, 00:51
Replies: 10
Views: 1,912
Posted By Balimbanana
Re: Random Player Help

For that part, you need to check IsValidEntity(i) before the other client checks:

stock Action GetRandomPlayer()
{
int clients[MAXPLAYERS+1];
int clientCount;
for (int i = 1; i <=...
Forum: Scripting 07-07-2020, 23:28
Replies: 10
Views: 1,912
Posted By Balimbanana
Re: Random Player Help

Most of the time people use the MAXPLAYERS+1 variable instead. It is just a static define for 64 unless you compile SourceMod with a different value. It won't be too much more to initialize the array...
Forum: Scripting 07-07-2020, 22:48
Replies: 10
Views: 1,912
Posted By Balimbanana
Re: Random Player Help

What version of SourceMod is it compiled on?
Forum: Scripting 07-07-2020, 22:26
Replies: 10
Views: 1,912
Posted By Balimbanana
Re: Random Player Help

It is due to this:

int clients[MaxClients + 1];

The issue is that MaxClients is a dynamic variable that can't be used to specify fixed array sizes.
You may be able to create the dynamic int...
Forum: Plugin/Gameplay Ideas and Requests 06-28-2020, 23:03
Replies: 6
Views: 1,294
Posted By Balimbanana
Re: i need a functional steamgroup plugin

Can you give specific examples?
Are you running the latest SourceMod/MetaMod and SteamWorks extensions?
Are you sure the group ID that was used is correct?
What methods are you using to hook the...
Forum: General 06-24-2020, 18:06
Replies: 3
Views: 1,517
Posted By Balimbanana
Re: How to hide server from master list ?

Depending on the game, you could try hosting the server on a non-standard UDP port.
Something less than 27000 or greater than 27200 the game might require both TCP and UDP, but you can test both....
Forum: Scripting 06-11-2020, 22:21
Replies: 4
Views: 1,744
Posted By Balimbanana
Re: m_iCompTeammateColor

It looks like it is part of the Player Resource, so setting it on the client most likely wouldn't work.
From the compcolour plugin:

...
int offset = FindSendPropInfo("CCSPlayerResource",...
Forum: Scripting 06-09-2020, 21:15
Replies: 9
Views: 1,715
Posted By Balimbanana
Re: Client index 0 is invalid

It is from a take damage hook (by the error message).
From what I have gathered, this generally happens if you are running a listen-server SourceMod, where the host is client 0, but the actual...
Forum: Scripting 06-08-2020, 21:55
Replies: 1
Views: 985
Posted By Balimbanana
Re: Can SourceMod detect texture surface props?

A bit of a late reply, but it is possible with SourceMod 1.10+ I believe.

float clpos[3];
float eyeang[3];
GetClientEyePosition(client, clpos);
GetClientEyeAngles(client, eyeang);
char...
Forum: General 06-02-2020, 19:29
Replies: 9
Views: 1,660
Posted By Balimbanana
Re: Security question ... what can source mode access on a windows machine ?

I think you should definitely sandbox it. Here is an example of being able to list directories and read files (to the extent of what the user that launched srcds.exe can access):

#include...
Forum: Scripting 05-27-2020, 21:47
Replies: 6
Views: 1,040
Posted By Balimbanana
Re: event crash problem

It is possible that either the EquipPlayerWeapon or ClientCommand is too soon for the weapon to properly initialize. If you make a 0.1 timer, it should fix that.
It could be something like this:
...
Showing results 1 to 25 of 77

 
Forum Jump

All times are GMT -4. The time now is 08:44.


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