Raised This Month: $51 Target: $400
 12% 

Showing results 1 to 25 of 45
Search took 0.01 seconds.
Search: Posts Made By: shortguy
Forum: Scripting 04-24-2020, 00:44
Replies: 3
Views: 1,632
Posted By shortguy
Re: [CSGO] Get active bonus weapon in deathmatch

Thanks for the reply, I did end up looking into the m_unDMBonusWeaponLoadoutSlot thing, but saw that it was a bit difficult to convert that to a players loadout slot/item. I've actually made a PR on...
Forum: Scripting 04-22-2020, 02:42
Replies: 3
Views: 1,632
Posted By shortguy
[CSGO] Get active bonus weapon in deathmatch

Hi there,

Does anyone know how I can find out the classname of the current bonus weapon in deathmatch? I would like to run some code on the player_death if they died to the bonus weapon but not...
Forum: Scripting 04-20-2020, 21:51
Replies: 42
Views: 24,316
Posted By shortguy
Re: [CSGO]PrintHintTextToAll cant use <font color='#00ffff' size='26'>

You can blame Valve for this, they added the whitelist to only allow certain message prefixes in the hint text...
Forum: Scripting 10-25-2015, 02:29
Replies: 2
Views: 590
Posted By shortguy
Forum: Scripting 10-24-2015, 23:24
Replies: 2
Views: 590
Posted By shortguy
[CSGO] Get who player is spectating

Hi there,

Is it possible to grab the client ID of the player that a person is spectating (if any) in CS GO?

Thanks
Forum: Scripting 10-17-2015, 03:45
Replies: 1
Views: 611
Posted By shortguy
Get Menu handler for client

Hi,

Is it possible to get a reference to the handle of the menu that a client has open. I know you can use GetClientMenu to return a MenuSource (so I know they have a menu open), but is it...
Forum: Scripting 10-13-2015, 05:45
Replies: 1
Views: 662
Posted By shortguy
[CSGO] Hooking PrintToChat of another plugin

Hi there,

I was wondering if it is at all possible to hook the function that occurs a plugin prints something to chat. Or if there is anyway to just grab all messages that ever get posted to chat...
Forum: Coding MM:S Plugins & SM Extensions 08-07-2015, 07:49
Replies: 7
Views: 2,154
Posted By shortguy
Re: CSGO basic usage

Alright, I've gotten past the segfault, but I'm still at a loss regarding the mask. How do I find out what will change at runtime? Is there an easy method to find which bytes should get masked?
Forum: Coding MM:S Plugins & SM Extensions 08-06-2015, 06:49
Replies: 7
Views: 2,154
Posted By shortguy
Re: CSGO basic usage

Alrighty, so new question,

I'm currently trying to implement the sigscan.cpp shown on the Signature scanning wiki page and I've reached a block in the road.

In the Load() of my MM plugin I am...
Forum: Coding MM:S Plugins & SM Extensions 08-05-2015, 20:42
Replies: 7
Views: 2,154
Posted By shortguy
Re: CSGO basic usage

Okay can I just run something by you?

I've taken the objdump from my server binary (since im on linux) and I'm trying to implement the CommitSuicide method. I find it in my dump here:

...
Forum: Scripting 08-05-2015, 02:57
Replies: 14
Views: 2,994
Posted By shortguy
Re: CS_RespawnPlayer CSGO become ghost.

Thanks, just converted to this:


public void RF_RespawnClient(int client) {
CS_RespawnPlayer(client);
}

public OnPluginStart() {
HookEvent("player_death", Event_PlayerDeath);
}
Forum: Scripting 08-05-2015, 01:20
Replies: 10
Views: 1,508
Posted By shortguy
Re: Native "GetEntDataEnt2" reported

Is it possible that the client becomes invalid in those 0.2 seconds?

Maybe change:
if (Client_HasWeapon(client, "weapon_knife") && IsValidClient(client))

To
if (IsValidClient(client) &&...
Forum: Coding MM:S Plugins & SM Extensions 08-05-2015, 01:13
Replies: 7
Views: 2,154
Posted By shortguy
CSGO basic usage

I know this has probably been asked a million times, but I am struggling to even find out how to create a CSGO plugin that mimics even the most basic of SourceMod behaviour.

If I can only use...
Forum: Scripting 08-04-2015, 08:47
Replies: 14
Views: 2,994
Posted By shortguy
Re: CS_RespawnPlayer CSGO become ghost.

Thanks for the suggestion, just tried it then using a flat ChangeClientTeam(client, 2), the team change goes ahead but I'm still in the floor. Very strange.


public Action...
Forum: Scripting 08-04-2015, 08:07
Replies: 14
Views: 2,994
Posted By shortguy
Re: CS_RespawnPlayer CSGO become ghost.

Works Fine

public OnPluginStart() {
HookEvent("player_death", Event_PlayerDeath);
}

public Action Timer_RespawnClient(Handle timer, int client) {
CS_RespawnPlayer(client);
}
Forum: Scripting 08-04-2015, 07:23
Replies: 14
Views: 2,994
Posted By shortguy
Re: CS_RespawnPlayer CSGO become ghost.

I eventually wont be using it for an instant respawn system, just wanted to find out what the requirements were for a valid spawn.

I guess, Valid Team and Is Dead?
Forum: Scripting 08-04-2015, 05:52
Replies: 14
Views: 2,994
Posted By shortguy
CS_RespawnPlayer CSGO become ghost.

So I'm having an interesting timing issue with CS:GO and CS_RespawnPlayer.

I am hooking the "player_death" event in order to respawn players immediately after they die.
However, if I run the...
Forum: Scripting 08-03-2015, 01:03
Replies: 17
Views: 5,823
Posted By shortguy
Re: [HELP] How can I remove breakable objects from maps in CS:GO?

If you are looking for a scripting response,

Doors: `prop_door_rotating`
Vents: `func_breakable`
Glass/Windows: `func_breakable_surf`

Iterate through the classes using
FindEntityByName ...
Forum: Coding MM:S Plugins & SM Extensions 08-02-2015, 06:32
Replies: 2
Views: 3,469
Posted By shortguy
Re: static_assert errors when compiling stub_mm

Wow that makes me feel dumb. I should have checked that it actually used c++11 before wondering that.

Should I submit a PR to get this flag merged into the sample projects in the metamod repo?
Forum: Coding MM:S Plugins & SM Extensions 08-02-2015, 02:56
Replies: 2
Views: 3,469
Posted By shortguy
static_assert errors when compiling stub_mm

Hi there,

I've been trying to compile the stub_mm included with the metamod source files but I can't seem to get around errors relating to static_assert

In file included from...
Forum: Scripting 08-02-2015, 00:14
Replies: 8
Views: 1,397
Posted By shortguy
Re: Any tag in transitional syntax.

splewis and Miu were both correct, had to change return type to int. Thanks!
Forum: Scripting 08-01-2015, 21:22
Replies: 3
Views: 832
Posted By shortguy
Re: How can i disallow comand if mp_roundtime - currenttimeROUND > 5

Since I can't really find a game property to track current round time, you can use this snippet I created here:

https://gist.github.com/roflmuffin/bed001ee2d12cb49deff

It's in transitional...
Forum: Scripting 08-01-2015, 21:02
Replies: 8
Views: 1,397
Posted By shortguy
Forum: Scripting 08-01-2015, 20:34
Replies: 8
Views: 1,397
Posted By shortguy
Re: Any tag in transitional syntax.

Even with the prototype of:

public void OnSocketError(Handle socket, const int errorType, const int errorNum, any arg)

It still tells me prototypes do not match.
Forum: Scripting 08-01-2015, 20:02
Replies: 8
Views: 1,397
Posted By shortguy
Any tag in transitional syntax.

I'm trying to implement the socket extension in transitional syntax and I can't seem to get the function prototypes to match.

Prototype from their include:
public(Handle:socket, const errorType,...
Showing results 1 to 25 of 45

 
Forum Jump

All times are GMT -4. The time now is 16:58.


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