Bug 4530 - Alien Swarm support
Alien Swarm support
Status: RESOLVED FIXED
Product: SourceMod
Classification: Unclassified
Component: Core
master
PC All
: P3 normal
Assigned To: SourceMod Bugs
:
: 4541 (view as bug list)
Depends on: 4532 4571
Blocks:
  Show dependency treegraph
 
Reported: 2010-07-19 17:27 PDT by Nicholas Hastings [:psychonic]
Modified: 2010-10-17 17:15 PDT (History)
7 users (show)

See Also:
ds: fixed‑1.3.5+


Attachments
Build changes (85.71 KB, patch)
2010-07-21 23:17 PDT, Scott Ehlert [:DS]
dvander: review+
Details | Diff | Splinter Review
gamedata, kinda... (9.34 KB, patch)
2010-07-23 19:05 PDT, Nicholas Hastings [:psychonic]
no flags Details | Diff | Splinter Review
patch for 1.3 branch (87.68 KB, patch)
2010-07-28 01:16 PDT, Scott Ehlert [:DS]
no flags Details | Diff | Splinter Review
patch for 1.3 branch v1.1 (87.68 KB, patch)
2010-07-28 01:25 PDT, Scott Ehlert [:DS]
no flags Details | Diff | Splinter Review
patch for 1.3 branch v1.1.1 (87.68 KB, patch)
2010-07-28 01:27 PDT, Scott Ehlert [:DS]
dvander: review+
dvander: approval‑1.3+
Details | Diff | Splinter Review
sample ext updates (120.88 KB, patch)
2010-08-01 19:10 PDT, Scott Ehlert [:DS]
skamonkey: review+
skamonkey: approval‑1.3+
Details | Diff | Splinter Review
limited gamedata (8.85 KB, patch)
2010-08-02 08:32 PDT, Nicholas Hastings [:psychonic]
ds: review+
Details | Diff | Splinter Review
gamedata w/ typofix (8.85 KB, patch)
2010-08-02 11:28 PDT, Nicholas Hastings [:psychonic]
ds: approval‑1.3+
Details | Diff | Splinter Review

Description Nicholas Hastings [:psychonic] 2010-07-19 17:27:40 PDT

    
Comment 1 Scott Ehlert [:DS] 2010-07-21 23:17:02 PDT
Created attachment 2247 [details] [review]
Build changes

This patch does not include any of the game data stuff. Psychonic has a patch for that though which he'll probably post.
Comment 2 Nicholas Hastings [:psychonic] 2010-07-23 19:05:33 PDT
Created attachment 2256 [details] [review]
gamedata, kinda...

Gamedata attached. While it's correct, many of the sdktools functions are near-useless in their current state.

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."

Any functions that affect the player, affect the the commander unit, typically doing nothing as all (or in the case of CommitSuicide, tossing a ragdoll onto the screen out of nowhere).

The actual controlled character, a CASW_Marine, is a CBaseNPC derivative.

Also of note, neither ShowMenu nor 'Valve menus' work.
Comment 3 Fyren 2010-07-24 20:36:18 PDT
Is there new stuff other than GetMarine that we might want to expose to SP?
Comment 4 Nicholas Hastings [:psychonic] 2010-07-25 14:59:41 PDT
*** Bug 4541 has been marked as a duplicate of this bug. ***
Comment 5 Nicholas Hastings [:psychonic] 2010-07-26 09:01:11 PDT
(In reply to comment #3)
It's hard to guess what people might want to do. They might not even know until there's a public build of SM with at least the base support.

In addition to methods on CASW_Marine, there are some interesting things in CASW_Marine_Profile (it controls the character profile/skills/stats) and CASW_WeaponInfo (for ease of changing weapon properties on the fly).
Comment 6 David Anderson [:dvander] 2010-07-27 17:01:31 PDT
Comment on attachment 2247 [details] [review]
Build changes

Sorry, I thought I r+'d this last night but I did so as my cable modem died.
Comment 7 Scott Ehlert [:DS] 2010-07-27 17:44:51 PDT
Pushed changeset: http://hg.alliedmods.net/sourcemod-central/rev/1b7bf8509625
Changelog:
	Added support for Alien Swarm (bug 4530, r=dvander).
Comment 8 Scott Ehlert [:DS] 2010-07-28 01:16:05 PDT
Created attachment 2272 [details] [review]
patch for 1.3 branch
Comment 9 Scott Ehlert [:DS] 2010-07-28 01:25:16 PDT
Created attachment 2273 [details] [review]
patch for 1.3 branch v1.1

Bleh and bleh.
Comment 10 Scott Ehlert [:DS] 2010-07-28 01:27:12 PDT
Created attachment 2274 [details] [review]
patch for 1.3 branch v1.1.1

Sigh, I didn't qref before the last attachment.
Comment 11 Scott Ehlert [:DS] 2010-07-28 04:36:08 PDT
Pushed changeset: http://hg.alliedmods.net/releases/sourcemod-1.3/rev/2696462effe3
Changelog:
	Added support for Alien Swarm (bug 4530, r=dvander).
Comment 12 Scott Ehlert [:DS] 2010-08-01 19:10:41 PDT
Created attachment 2284 [details] [review]
sample ext updates
Comment 13 Scott Ehlert [:DS] 2010-08-01 19:23:06 PDT
So what do we want to do with the gamedata? I'm thinking we should push what we've got as-is for now so we can at least get _some_ SDKTools support in there. We can always make extra changes later if we want.
Comment 14 Nicholas Hastings [:psychonic] 2010-08-02 08:32:37 PDT
Created attachment 2287 [details] [review]
limited gamedata

(In reply to comment #13)
It might make more sense to at least pare it down a bit to remove things known to not be working correctly.

Updated the gamedata patch to remove data for functions that are used specifically on players, rather than any ent, and do not work as expected.
Comment 15 Nicholas Hastings [:psychonic] 2010-08-02 11:28:45 PDT
Created attachment 2288 [details] [review]
gamedata w/ typofix

So that patch matches commit (and to add more bugspam for great justice)...

Noticed before committing that patch had "engine" "swarm" in one spot instead of "engine" "alienswarm".
Comment 16 Nicholas Hastings [:psychonic] 2010-08-02 11:29:34 PDT
Pushed changeset: http://hg.alliedmods.net/sourcemod-central/rev/698b70d20532
Changelog:
	Added initial gamedata for Alien Swarm (bug 4530, r=ds).
Comment 17 Nicholas Hastings [:psychonic] 2010-08-02 18:49:02 PDT
Pushed changeset: http://hg.alliedmods.net/releases/sourcemod-1.3/rev/b9961142fa9c
Changelog:
	Added initial gamedata for Alien Swarm (bug 4530, r=ds).
Comment 18 Fyren 2010-08-19 23:55:44 PDT
Comment on attachment 2284 [details] [review]
sample ext updates

Makefiles need a HL2SDK_SWARM define and checks for ENGINE=swarm to set HL2SDK/LIB_* stuff.

I dunno about the MSVC projects, I don't currently have the ability to test them.
Comment 19 Scott Ehlert [:DS] 2010-08-20 00:40:04 PDT
Alien Swarm no Linux support yet (and who knows if it ever will) so those aren't needed.
Comment 20 Scott Ehlert [:DS] 2010-08-20 10:43:18 PDT
Pushed changeset: http://hg.alliedmods.net/sourcemod-central/rev/b4bd765050e4
Changelog:
	Added Alien Swarm build config for sample extension (bug 4530, r=psychonic).
Comment 21 Scott Ehlert [:DS] 2010-08-20 11:00:17 PDT
Pushed changeset: http://hg.alliedmods.net/releases/sourcemod-1.3/rev/316a27614fb9
Changelog:
	Added Alien Swarm build config for sample extension (bug 4530, r+a13=psychonic).

Note You need to log in before you can comment on or make changes to this bug.