How to access specific entity's "handle" data type in VScript

Hello!

I was looking around the VScript documentation and found a command called IsPlayerABot, which takes type "handle" as argument, and based on that handle returns a true/false value based on whether or not the player associated with the given handle is a bot. I understand that a handle is a reference to a player or entity of some kind, but how do I gain a specific entity's handle in order to access it?

For example, let's say there's me, my friend and a bot I've spawned in all together in a server. How do I get the handles for each, to then plug in to the IsPlayerABot function, presumably returning false for my friend and I and true for the bot? My apologies if this question is confusing, I can clarify further if needed.

reddit.com
u/god_gamer_9001 — 19 days ago
▲ 3 r/hammer

Disable fall damage on landing after being pushed by trigger_push?

Hello!

I'm making a Counter-Strike: Source map, and have a trigger_push trigger that launches the player quite high and quite far. Because of this, they take quite a lot of fall damage upon hitting the ground, something I do not want to happen. Is there any way to disable fall damage only if they've been pushed by the trigger, and only until they hit the ground?

Edit: I used this tutorial to turn off fall damage with a trigger_multiple taking up the same space as my trigger push, alongside two filter_damage_types, one turning off fall damage ("Disallow entities") and one turning it on ("Allow entities"), setting the "After delay in seconds of" to 0.0 for the first filter_damage_type and 5.0 for the second, effectively just turning back on fall damage after 5 seconds of being launched. Quite a buggy fix, but it's what worked for me.

u/god_gamer_9001 — 19 days ago

"Unable to load plugin (bad header)"

Hello!

I've been trying to make my own CS:S plugin, but cannot seem to get it to work. I've been following this tutorial, admittedly just copying the exact example code given, but to no avail. I have both MetaMod and SourceMod installed, and have put it in my cstrike/addons/sourcemod/plugins folder, and yet it still gives this error message when sm plugins list is called:

[SM] Listing 18 plugins:
  01 . . . 08 [not important]
  14 <Bad Load> mfp.smx
Errors:
  15 [not important]
  mfp.smx: Unable to load plugin (bad header)

What is causing this? Found below is my exact code within the plugin, I would appreciate it greatly if anyone knows what is causing this.

#include <sourcemod>
 
public Plugin myinfo =
{
  name = "My First Plugin",
  author = "Me",
  description = "My first plugin ever",
  version = "1.0",
  url = "http://www.sourcemod.net/"
};
 
public void OnPluginStart()
{
  PrintToServer("Hello world!");
}

EDIT: All I needed to do was actually compile the .sp files into .smx ones, I was just renaming the file extension

u/god_gamer_9001 — 19 days ago

How to deal full damage to teammates?

Hello! I'm currently testing out some console commands to play with friends, and stumbled upon "mp_friendlyfire 1", which does exactly what you would expect it to. However, this does not seem to do full damage to teammates, a notable example being the Magnum Sniper Rifle not one-tapping like it would against an enemy. Is there any way I can fix this?

reddit.com
u/god_gamer_9001 — 23 days ago

Spy cosmetics to accompany my Stormy Storm Towering Pillar of Hats?

Hello!

I've recently gotten myself a Stormy Storm Towering Pillar of Hats, and I love it. The hat is so tall and obnoxious, and thus, I've put it on the Spy, a class in which you would not want hats of that caliber. Are there any other "obnoxious" cosmetics like that that I could use? I want to take up as much space as possible.

The only other one that comes to mind is maybe Botler 2000, but I'd like to fill up all cosmetic slots if possible.

Thank you!

reddit.com
u/god_gamer_9001 — 1 month ago

Any way to get around the "Let's confirm you are a human" on desktop?

For obvious reasons, I don't want to download the app on my phone, I only use this website on my computer and I want to keep it that way. Is there anything I could do at all to pass this "verification" on my computer?

reddit.com
u/god_gamer_9001 — 2 months ago

Wii Guitar Hero controller not connecting

Hello!

Recently, I've been trying to play GH3 on my Wii, but the GH controller I have does not seem to work. It worked about a month ago, then I stopped playing for a little bit, and now it no longer responds to any inputs. The cable looks fine, as shown in the video, and on one attempt the green and red buttons were kind of working, but I have yet to get the strum bar to work. I have cleaned the little gold buttons on the connector between the neck and base of the guitar, but to no avail. Is there anything I can do to fix my controller?

u/god_gamer_9001 — 2 months ago