Skip to content
ozxybox edited this page Mar 15, 2018 · 2 revisions

Converting a Source 2013 project to Alien Swarm

gViewPortInterface = GetViewPortInterface()

min = MIN

max = MAX

g_pClientMode = GetClientMode()

m_HudList = GetHudList()

m_HudList.Size() = GetHudList().Count()

m_HudList[i]->GetName() = element->GetName()

CMultiPlayerAnimState = CBasePlayerAnimState

MultiPlayerMovementData_t = CModAnimConfig

g_pMapOverview = GetMapOverView()

SteamUser() = steamapicontext->SteamUser()

pEvent->event = pEvent()

virtual int DrawModel( int flags ); = virtual int DrawModel( int flags, const

RenderableInstance_t &instance);

BaseClass::DrawModel( flags ); = BaseClass::DrawModel( flags, instance );

m_nSkin = GetSkin(); SetSkin(); //applies to some and not to others(edited)

C_BaseEntity::m_nRenderFX = C_BaseEntity::GetRenderFX(); =

C_BaseEntity::SetRenderFX();

SetRenderColorA( int iAlpha ) = SetRenderAlpha( int iAlpha )

gHUD = GetHud()(edited)

gHUD.GetIcon = HudIcons().GetIcon

swap = V_swap

m_iDamage = m_flDamage

Size() = Count()

SteamUserStats() = steamapicontext->SteamUserStats()

GetStat( gameID, szStatName, &iData ) = GetStat( szStatName, &iData )

SetStat( gameID, szStatName, = SetStat( szStatName,

GetPointContentsCached = GetWaterContentsForPointCached

ResetGetPointContentsCache = ResetGetWaterContentsForPointCache

ShouldWarnOnCap = GetCapWarningLevel

MoveToCenterOfScreen() = PositionScoreboard()

DECLARE_ACHIEVEMENT = DECLARE_ACHIEVEMENT_ORDER + 1 arg (order by 10 for each achievement)

(also apparently DECLARE_ACHIEVEMENT is broke lol, says function does not take 0 args)

AI_Response *SpeakConcept( int iConcept ); = void SpeakConcept( AI_Response &outresponse, int iConcept );

Quaternion = QuaternionAligned (1st one still exists tho, just isnt used apparently)

virtual void CreateLightEffects( void ) = virtual bool CreateLightEffects( void )

virtual void Simulate(); = virtual bool Simulate();

Clone this wiki locally