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

Showing results 1 to 25 of 144
Search took 0.01 seconds.
Search: Posts Made By: Kolapsicle
Forum: Plugin/Gameplay Ideas and Requests 01-21-2022, 19:35
Replies: 3
Views: 1,131
Posted By Kolapsicle
Re: [CSGO]Use SteamID to control weapon damage

Hey, I cobbled together a working concept for what you want. There is a caveat in that changing grenade damage will effect both the projectiles colliding with players along with their respective...
Forum: Scripting 12-06-2020, 04:43
Replies: 3
Views: 1,221
Posted By Kolapsicle
Re: SOCKET! Socket splits a packet into parts!

TCP packets are typically no larger than 1500 bytes before they're fragmented, but you can try to set the MSS like this:

SocketSetOption(socket, SocketSendBuffer, 6144);

I'm not sure how the...
Forum: Scripting 02-01-2020, 10:33
Replies: 14
Views: 2,818
Posted By Kolapsicle
Re: Check walll between two players

Sorry, a return value of false will filter the entity. I should have referred to the documentation before making an assumption.


bool TraceFilterClients(int entity, int contentsMask, any data)
{...
Forum: Scripting 01-31-2020, 23:35
Replies: 14
Views: 2,818
Posted By Kolapsicle
Re: Check walll between two players

Your second parameter should be an angle, but traceDir is a vector. Try first getting the angle from the vector with GetVectorAngles (https://sm.alliedmods.net/new-api/vector/GetVectorAngles).
...
Forum: Scripting 01-31-2020, 00:32
Replies: 14
Views: 2,818
Posted By Kolapsicle
Re: Check walll between two players

You aren't passing any data to the filter callback. Your trace is probably just hitting the client at clientPos, and returning a collision. See the last parameter of TR_TraceRayFilter...
Forum: Scripting 01-30-2020, 02:05
Replies: 14
Views: 2,818
Posted By Kolapsicle
Re: Check walll between two players

Mins is the minimum size of your hull, and Maxs is the maximum size.

https://i.imgur.com/hqR4b7P.png

If you don't need a hull, then you should use a Ray...
Forum: Scripting 01-29-2020, 07:23
Replies: 14
Views: 2,818
Posted By Kolapsicle
Re: Check walll between two players

Mins and Maxs are points that form the hull. You can define the points yourself, or get the existing values from the clients.


float vecMins[3], vecMaxs[3];
GetClientMins(client, vecMins);...
Forum: Scripting 01-29-2020, 04:25
Replies: 14
Views: 2,818
Posted By Kolapsicle
Re: Check walll between two players

Using both clients' positions, you can cast a ray from one to the other, and check for collisions. TR_TraceRayFilter (https://sm.alliedmods.net/new-api/sdktools_trace/TR_TraceRayFilter) will allow...
Forum: Scripting 12-27-2019, 00:12
Replies: 16
Views: 6,808
Posted By Kolapsicle
Re: Detect skybox by trace?

Sourcemod has many more trace ray functions (https://sm.alliedmods.net/new-api/sdktools_trace) then back in 2013. You can now use TR_GetSurfaceName...
Forum: Scripting 12-26-2019, 03:02
Replies: 1
Views: 682
Posted By Kolapsicle
Re: Error 147 while compiling

It's probably complaining because you're missing a function type. Try adding "void" (or relevant return type) after the "public" keyword.
Forum: Scripting 12-16-2019, 02:34
Replies: 5
Views: 2,640
Posted By Kolapsicle
Re: Can't find the new way to write this Enum

"Rank" is a data-type which contains an int, and a char. You can add dimensions to it like any other data-type. (e.g. int foo[32];)


enum struct Rank
{
int rankPoints;
char chatRank[64];
}...
Forum: Plugin/Gameplay Ideas and Requests 11-04-2019, 03:03
Replies: 8
Views: 2,167
Posted By Kolapsicle
Re: [L4D2/REQ] Looking for a plugin to print player loading time

I used an ArrayList to track userid's in case a client index shifts, or is this not the case here?
Forum: Scripting 11-03-2019, 02:16
Replies: 8
Views: 2,855
Posted By Kolapsicle
Re: [CS:GO] Blocking status command

I can confirm it works without issue on CS:GO SM 1.10.6451
Forum: Plugin/Gameplay Ideas and Requests 11-03-2019, 00:26
Replies: 8
Views: 2,167
Posted By Kolapsicle
Re: [L4D2/REQ] Looking for a plugin to print player loading time

I'm not sure who's going to see it, but this should print one message per map based on the first player's connection time.
Forum: Scripting 11-02-2019, 23:52
Replies: 8
Views: 2,855
Posted By Kolapsicle
Re: [CS:GO] Blocking status command

You can block the status output like this:

public void OnPluginStart()
{
AddCommandListener(StatusCallback, "status");
}

public Action StatusCallback(int client, const char[] command, int...
Forum: Scripting 10-29-2019, 08:26
Replies: 5
Views: 2,160
Posted By Kolapsicle
Re: CS:GO Spawn an entity (weapon) at a specific location

I wrote a quick example which spawns an AK47 at a players position.

#pragma semicolon 1

#include <sourcemod>
#include <sdktools>

#pragma newdecls required

public void OnPluginStart()
Forum: Plugin/Gameplay Ideas and Requests 10-22-2019, 09:24
Replies: 8
Views: 2,167
Posted By Kolapsicle
Forum: Scripting 06-05-2019, 19:55
Replies: 5
Views: 1,582
Posted By Kolapsicle
Re: Hook OnTakeDamage, but in other ways..?

The same way as in your example.

public void OnPlayerRunCmdPost(int client)
{
// This will create endless hooks on the client - not a good idea as is
SDKHook(client, SDKHook_OnTakeDamage,...
Forum: Scripting 06-05-2019, 17:05
Replies: 5
Views: 1,582
Posted By Kolapsicle
Re: Hook OnTakeDamage, but in other ways..?

Yes, but you should be mindful not to hook the same entity more than once.
Forum: Scripting 06-05-2019, 16:58
Replies: 12
Views: 2,644
Posted By Kolapsicle
Re: [Not Solved] The help of professional programmers is required.

If you look around in the repository SZOKOZ linked you'll find a solution.
...
Forum: Scripting 06-02-2019, 04:17
Replies: 4
Views: 1,167
Posted By Kolapsicle
Re: [CS:S] Is it possible to make a player speed save and load?

float velocity[3];
GetEntPropVector(client, Prop_Data, "m_vecVelocity", velocity);
Forum: Scripting 05-24-2019, 23:30
Replies: 12
Views: 2,491
Posted By Kolapsicle
Re: grey out menu entries

param1 usually represents a client in a menuhandler.
Forum: Scripting 05-24-2019, 14:13
Replies: 12
Views: 2,491
Posted By Kolapsicle
Re: grey out menu entries

Another option is CheckCommandAccess (https://sm.alliedmods.net/new-api/console/CheckCommandAccess). You'll have to call it for each config key you wish to check against.

char key[] = "sm_rcon";...
Forum: Scripting 05-24-2019, 10:25
Replies: 12
Views: 2,491
Posted By Kolapsicle
Re: grey out menu entries

I've never used the SMC parser, and I may be wrong, but I don't expect it supports parsing two values per key. Have you considered using command overrides...
Forum: Scripting 05-23-2019, 13:01
Replies: 12
Views: 2,491
Posted By Kolapsicle
Re: grey out menu entries

Using GetUserAdmin (https://sm.alliedmods.net/new-api/clients/GetUserAdmin) to return an AdminId (https://sm.alliedmods.net/new-api/admin/AdminId) methodmap...
Showing results 1 to 25 of 144

 
Forum Jump

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


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