Rules
FAQ
Members List
Search
Register
Login
Raised This Month: $51
Target: $400
12%
Search Forums
Show Threads
Show Posts
Advanced Search
Go to Page...
Page 1 of 6
1
2
3
>
Last
»
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
[CSGO]Use SteamID to control weapon damage
Views:
1,144
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
SOCKET! Socket splits a packet into parts!
Views:
1,223
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
Solved
Check walll between two players
Views:
2,852
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
Solved
Check walll between two players
Views:
2,852
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
Solved
Check walll between two players
Views:
2,852
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
Solved
Check walll between two players
Views:
2,852
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
Solved
Check walll between two players
Views:
2,852
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
Solved
Check walll between two players
Views:
2,852
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
Detect skybox by trace?
Views:
6,815
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
Error 147 while compiling
Views:
683
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
Can't find the new way to write this Enum
Views:
2,643
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
[L4D2/REQ] Looking for a plugin to print player loading time
Views:
2,173
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
[CS:GO] Blocking status command
Views:
2,862
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
[L4D2/REQ] Looking for a plugin to print player loading time
Views:
2,173
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
[CS:GO] Blocking status command
Views:
2,862
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
CS:GO Spawn an entity (weapon) at a specific location
Views:
2,165
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
[L4D2/REQ] Looking for a plugin to print player loading time
Views:
2,173
Posted By
Kolapsicle
Re: [L4D2/REQ] Looking for a plugin to print player loading time
Not tested on L4D2.
Forum:
Scripting
06-05-2019, 19:55
Replies:
5
Hook OnTakeDamage, but in other ways..?
Views:
1,586
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
Hook OnTakeDamage, but in other ways..?
Views:
1,586
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
[Not Solved] The help of professional programmers is required.
Views:
2,647
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
[CS:S] Is it possible to make a player speed save and load?
Views:
1,169
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
grey out menu entries
Views:
2,507
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
grey out menu entries
Views:
2,507
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
grey out menu entries
Views:
2,507
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
grey out menu entries
Views:
2,507
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
Page 1 of 6
1
2
3
>
Last
»
Forum Jump
User Control Panel
Private Messages
Subscriptions
Who's Online
Search Forums
Forums Home
Server Discussion
Source Servers (SRCDS)
HL1 Servers (HLDS)
AMX Mod X
News
Bug Reports
General
Off-Topic
Plugins
Suggestions / Requests
Approved Plugins
New Plugin Submissions
Unapproved/Old Plugins
Translation Request
High-Traffic Plugins
GunGame
UAIO (Ultimate All-In-One Plugin)
xREDIRECT
CSDM
AMX Super
RuneMod
Zombie Plague Mod
SuperHero Mod
News
Tech Support
Scripting Help
Off-Topic / General Chat
Heroes
Suggestions / Requests
Approved Heroes
New Submissions
Unapproved/Old Heroes
Module Heroes
SuperHero Mod Stats - By 123
(OLD) Bug Reports
Scripting
Scripting Help
Code Snippets/Tutorials
Module Coding
Donor Access
SourceMod
News
General
Plugins
Plugins
Unapproved Plugins
Plugin/Gameplay Ideas and Requests
High-Traffic Plugins
SourceMod Anti-Cheat
Zombie:Reloaded
SourceBans / SourceBans++
VSH / Freak Fortress
Store
SM_Hosties
HLstatsX:CE
Scripting
Extensions
Snippets and Tutorials
Donor Access
Metamod: Source
Metamod:Source Plugins
Metamod:Source Questions
Coding MM:S Plugins & SM Extensions
Hosted Stuff
Asherkin's Plugins
TFDodgeball
TF2Items
SteamTools
Bail's Plugins
CSDM
CS:S DM
Off-Topic & Trash
Off-Topic
Trash
All times are GMT -4. The time now is
23:26
.
DMCA
-
Archive
-
Top
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode