[Alien Swarm] Finding current equipped weapon name
hi, i tried to make a plugin for the game, but encountered errors while getting the weapon index for the weapon in slot x by using GetPlayerWeaponSlot()... it replied with this: [SM] Native "GetPlayerWeaponSlot" reported: "Weapon_GetSlot" not supported by this mod. is there an alternate way which i could do so?
|
Re: [Alien Swarm] Finding current equipped weapon name
I believe alien swarm should be fully supported as of 1.3.5 try downloading a new snapshot.
|
Re: [Alien Swarm] Finding current equipped weapon name
the sourcemod that i am using now is 1.4 beta snapshot... and it said that it is not supported... and i noticed a few other things about alien swarm, panels and menus are not supported, it says vgui is missing... and coloured text too, all the text appear same colour(yellow) although i formatted them to be different...
|
Re: [Alien Swarm] Finding current equipped weapon name
Hmm, well most of sourcemod should be working though I've only worked with hooked events so for on alien swarm.
|
Re: [Alien Swarm] Finding current equipped weapon name
so there isn't any way to actually get the currently equipped weapon on the marine? i've seen from some other pages that there is a GetMarine() to get the actual controlled marine by the player, because the player isn't moving at all.. as taken from here:
From the Valve Wiki: "Unlike most Source engine games, the player in Alien Swarm is an invisible commander entity. It does not move. If the player is currently controlling a marine, then calling the GetMarine() method on the player will return it." But then, is there a full list of the new scripting api reference of alien swarm available? there seems to be some commands that are new... |
Re: [Alien Swarm] Finding current equipped weapon name
by the way, is there any way to check the available api reference from the sourcemod? like check what scripting api is available for alien swarm in the sourcemod files?
|
Re: [Alien Swarm] Finding current equipped weapon name
Quote:
Quote:
Alien Swarm has the extra exception that no current menu implementation works. A while ago, I was messing with the possibility of implementation menus using hud messages, resulting in menus displaying similarly to AMXX's as this would have given an on-screen menu to game's that didn't support the radio menu (HL2DM and now Alien Swarm where where vgui menu is also busted). At one point, it was partially working, but there were a couple bugs. I later accidentally even broke what I had and never got back to finishing it. If there's enough interest, I might look at it again. |
Re: [Alien Swarm] Finding current equipped weapon name
Quote:
Since I'm nice (sometimes) and this will eventually be needed anyway, here is a plugin library to provide natives for these. Just do "#include <swarmtools>". I can/will also add natives to replicate any sdktools_functions natives that require a client index but need to be executed on a marine. Just let me know what doesn't work directly with a marine index. This is completely untested as I don't have the desire or time to do so right now, but if you can confirm that it works, I'll post it in the New Plugins section (or fix it first). Code:
This requires SDK Tools and SDK Hooks. I will post a temporary build of SDK Hooks 1.3 shortly that will work on Alien Swarm. Edit: attachments removed, go here https://forums.alliedmods.net/showthread.php?t=144324 |
Re: [Alien Swarm] Finding current equipped weapon name
Quote:
|
Re: [Alien Swarm] Finding current equipped weapon name
1 Attachment(s)
Quote:
Full sdkhooks source is also in the zip since I had to make edits specifically for AS. You should just need the dll and the gamedata file in /extensions and /gamedata respectively. |
All times are GMT -4. The time now is 15:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.