Skip to content

Commit 7f0aec4

Browse files
authored
Merge pull request #250 from mapbase-source/develop
Mapbase v7.2
2 parents 82bc30c + 6bd9bcb commit 7f0aec4

96 files changed

Lines changed: 4385 additions & 319 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/mapbase_build-base.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
runs-on: windows-latest
5252

5353
steps:
54-
- uses: actions/checkout@v3
54+
- uses: actions/checkout@v4
5555

5656
- name: Add MSBuild to PATH
5757
uses: microsoft/setup-msbuild@v1.1

.github/workflows/mapbase_build-sp-games.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
branches:
1414
- develop
1515
paths:
16+
- '.github/workflows/mapbase_build-base.yml'
1617
- '.github/workflows/mapbase_build-sp-rel-games.yml'
1718
- 'sp/src/vpc_scripts/**'
1819
- 'sp/src/game/**'

.github/workflows/mapbase_pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
# https://github.com/actions/labeler
77

88
name: Pull Request Automation
9-
on: [pull_request]
9+
on: [pull_request] # pull_request_target
1010

1111
jobs:
1212
label:
1313

14-
if: github.repository_owner == 'mapbase-source'
14+
if: github.repository_owner == 'mapbase-source' # ${{ vars.MAPBASE_LABELS == 'true' }}
1515
runs-on: ubuntu-latest
1616
permissions:
1717
contents: read

README

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//=========================================================================================================================
22

3-
Mapbase v7.1 - Source 2013
3+
Mapbase v7.2 - Source 2013
44
https://github.com/mapbase-source/source-sdk-2013
55
https://www.moddb.com/mods/mapbase
66

@@ -112,6 +112,12 @@ Direct contributions:
112112
- https://github.com/mapbase-source/source-sdk-2013/issues/201 (env_projectedtexture shadow filter keyvalue from celisej567)
113113
- https://github.com/mapbase-source/source-sdk-2013/pull/193 (RTB:R info_particle_system_coordinate by arbabf and Iridium77)
114114
- https://github.com/mapbase-source/source-sdk-2013/pull/193 (Infinite prop_interactable cooldown by arbabf)
115+
- https://github.com/mapbase-source/source-sdk-2013/pull/229 (Extended point_bugbait functionality by arbabf)
116+
- https://github.com/mapbase-source/source-sdk-2013/pull/236 (Toggleable prop sprinting by Crimson-X1)
117+
- https://github.com/mapbase-source/source-sdk-2013/pull/237 (Commander goal trace fix by Agrimar)
118+
- https://github.com/mapbase-source/source-sdk-2013/pull/245 (ViewPunch random fix by Mr0maks)
119+
- https://github.com/mapbase-source/source-sdk-2013/pull/248 (soundlevel_t conversation warning fix by Mechami)
120+
- https://github.com/mapbase-source/mapbase-game-src/pull/1 (Advanced video options duplicate field name fix by arbabf; This is asset-based and not reflected in the code)
115121
- Demo autorecord code provided by Klems
116122
- cc_emit crash fix provided by 1upD
117123
- Custom HL2 ammo crate models created by Rykah (Textures created by Blixibon; This is asset-based and, aside from the SLAM crate, not reflected in the code)
@@ -137,6 +143,9 @@ Direct contributions:
137143
=-- https://github.com/mapbase-source/source-sdk-2013/pull/192 (VScript hook manager and fixes)
138144
=-- https://github.com/mapbase-source/source-sdk-2013/pull/206 (Fix CScriptNetMsgHelper::WriteEntity())
139145
=-- https://github.com/mapbase-source/source-sdk-2013/pull/213 (VScript HUD visibility control, optimizations for 3D skybox angles/fake worldportals)
146+
=-- https://github.com/mapbase-source/source-sdk-2013/pull/229 (VScript VGUI HUD viewport parenting, game_text and vgui_text_display VScript font fallback)
147+
=-- https://github.com/mapbase-source/source-sdk-2013/pull/261 (Misc VScript additions)
148+
=-- https://github.com/mapbase-source/source-sdk-2013/pull/279 (weapon_custom_scripted fixes)
140149

141150
== Contributions from z33ky:
142151
=-- https://github.com/mapbase-source/source-sdk-2013/pull/21 (Various GCC/Linux compilation fixes)
@@ -156,6 +165,9 @@ Direct contributions:
156165
=-- https://github.com/mapbase-source/source-sdk-2013/pull/184 (Projected texture horizontal FOV shadow fix)
157166
=-- https://github.com/mapbase-source/source-sdk-2013/pull/185 (Fix enemyfinders becoming visible when they wake)
158167
=-- https://github.com/mapbase-source/source-sdk-2013/pull/186 (Fix for brightly glowing teeth)
168+
=-- https://github.com/mapbase-source/source-sdk-2013/pull/183 (Enhanced custom weapons support)
169+
=-- https://github.com/mapbase-source/source-sdk-2013/pull/230 (Caption fixes)
170+
=-- https://github.com/mapbase-source/source-sdk-2013/pull/231 (Sentence source bug fix)
159171

160172
//-------------------------------------------------------------------------------------------------------------------------
161173

mp/src/game/shared/hl2mp/weapon_ar2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ void CWeaponAR2::DelayedAttack( void )
208208

209209
// pOwner->SnapEyeAngles( angles );
210210

211-
pOwner->ViewPunch( QAngle( SharedRandomInt( "ar2pax", -8, -12 ), SharedRandomInt( "ar2pay", 1, 2 ), 0 ) );
211+
pOwner->ViewPunch( QAngle( SharedRandomInt( "ar2pax", -12, -8 ), SharedRandomInt( "ar2pay", 1, 2 ), 0 ) );
212212

213213
// Decrease ammo
214214
pOwner->RemoveAmmo( 1, m_iSecondaryAmmoType );

sp/src/game/client/c_baseanimating.cpp

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4042,6 +4042,92 @@ void C_BaseAnimating::FireEvent( const Vector& origin, const QAngle& angles, int
40424042
}
40434043
break;
40444044

4045+
#ifdef MAPBASE // From Alien Swarm SDK
4046+
case AE_CL_STOP_PARTICLE_EFFECT:
4047+
{
4048+
char token[256];
4049+
char szParticleEffect[256];
4050+
4051+
// Get the particle effect name
4052+
const char *p = options;
4053+
p = nexttoken(token, p, ' ', sizeof(token));
4054+
if ( token )
4055+
{
4056+
Q_strncpy( szParticleEffect, token, sizeof(szParticleEffect) );
4057+
}
4058+
4059+
// Get the attachment point index
4060+
p = nexttoken(token, p, ' ', sizeof(token));
4061+
bool bStopInstantly = ( token && !Q_stricmp( token, "instantly" ) );
4062+
4063+
ParticleProp()->StopParticlesNamed( szParticleEffect, bStopInstantly );
4064+
}
4065+
break;
4066+
4067+
case AE_CL_ADD_PARTICLE_EFFECT_CP:
4068+
{
4069+
int iControlPoint = 1;
4070+
int iAttachment = -1;
4071+
int iAttachType = PATTACH_ABSORIGIN_FOLLOW;
4072+
int iEffectIndex = -1;
4073+
char token[256];
4074+
char szParticleEffect[256];
4075+
4076+
// Get the particle effect name
4077+
const char *p = options;
4078+
p = nexttoken(token, p, ' ', sizeof(token));
4079+
if ( token )
4080+
{
4081+
Q_strncpy( szParticleEffect, token, sizeof(szParticleEffect) );
4082+
}
4083+
4084+
// Get the control point number
4085+
p = nexttoken(token, p, ' ', sizeof(token));
4086+
if ( token )
4087+
{
4088+
iControlPoint = atoi( token );
4089+
}
4090+
4091+
// Get the attachment type
4092+
p = nexttoken(token, p, ' ', sizeof(token));
4093+
if ( token )
4094+
{
4095+
iAttachType = GetAttachTypeFromString( token );
4096+
if ( iAttachType == -1 )
4097+
{
4098+
Warning("Invalid attach type specified for particle effect anim event. Trying to spawn effect '%s' with attach type of '%s'\n", szParticleEffect, token );
4099+
return;
4100+
}
4101+
}
4102+
4103+
// Get the attachment point index
4104+
p = nexttoken(token, p, ' ', sizeof(token));
4105+
if ( token )
4106+
{
4107+
iAttachment = atoi(token);
4108+
4109+
// See if we can find any attachment points matching the name
4110+
if ( token[0] != '0' && iAttachment == 0 )
4111+
{
4112+
iAttachment = LookupAttachment( token );
4113+
if ( iAttachment == -1 )
4114+
{
4115+
Warning("Failed to find attachment point specified for particle effect anim event. Trying to spawn effect '%s' on attachment named '%s'\n", szParticleEffect, token );
4116+
return;
4117+
}
4118+
}
4119+
}
4120+
iEffectIndex = ParticleProp()->FindEffect( szParticleEffect );
4121+
if ( iEffectIndex == -1 )
4122+
{
4123+
Warning("Failed to find specified particle effect. Trying to add CP to '%s' on attachment named '%s'\n", szParticleEffect, token );
4124+
return;
4125+
}
4126+
ParticleProp()->AddControlPoint( iEffectIndex, iControlPoint, this, (ParticleAttachment_t)iAttachType, iAttachment );
4127+
}
4128+
break;
4129+
#endif
4130+
40454131
case AE_CL_PLAYSOUND:
40464132
{
40474133
CLocalPlayerFilter filter;
@@ -4291,6 +4377,22 @@ void C_BaseAnimating::FireEvent( const Vector& origin, const QAngle& angles, int
42914377
}
42924378
break;
42934379

4380+
#ifdef MAPBASE
4381+
case AE_VSCRIPT_RUN:
4382+
{
4383+
if (!RunScript( options ))
4384+
Warning( "%s failed to run AE_VSCRIPT_RUN on client with \"%s\"\n", GetDebugName(), options );
4385+
}
4386+
break;
4387+
4388+
case AE_VSCRIPT_RUN_FILE:
4389+
{
4390+
if (!RunScriptFile( options ))
4391+
Warning( "%s failed to run AE_VSCRIPT_RUN_FILE on client with \"%s\"\n", GetDebugName(), options );
4392+
}
4393+
break;
4394+
#endif
4395+
42944396
default:
42954397
break;
42964398
}

sp/src/game/client/c_basecombatcharacter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ END_PREDICTION_DATA()
181181

182182
#ifdef MAPBASE_VSCRIPT
183183

184-
BEGIN_ENT_SCRIPTDESC( C_BaseCombatCharacter, CBaseEntity, "" )
184+
BEGIN_ENT_SCRIPTDESC( C_BaseCombatCharacter, C_BaseAnimating, "" )
185185
DEFINE_SCRIPTFUNC_NAMED( ScriptGetAmmoCount, "GetAmmoCount", "" )
186186
DEFINE_SCRIPTFUNC_NAMED( ScriptGetActiveWeapon, "GetActiveWeapon", "" )
187187
DEFINE_SCRIPTFUNC_NAMED( ScriptGetWeapon, "GetWeapon", "" )

sp/src/game/client/c_baseentity.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,9 @@ BEGIN_ENT_SCRIPTDESC_ROOT( C_BaseEntity, "Root class of all client-side entities
502502
DEFINE_SCRIPTFUNC_NAMED( GetScriptOwnerEntity, "GetOwner", "Gets this entity's owner" )
503503
DEFINE_SCRIPTFUNC_NAMED( SetScriptOwnerEntity, "SetOwner", "Sets this entity's owner" )
504504

505+
DEFINE_SCRIPTFUNC_NAMED( ScriptGetGroundEntity, "GetGroundEntity", "Get the entity we're standing on." )
506+
DEFINE_SCRIPTFUNC_NAMED( ScriptSetGroundEntity, "SetGroundEntity", "Set the entity we're standing on." )
507+
505508
DEFINE_SCRIPTFUNC_NAMED( ScriptGetColorVector, "GetRenderColorVector", "Get the render color as a vector" )
506509
DEFINE_SCRIPTFUNC_NAMED( ScriptGetColorR, "GetRenderColorR", "Get the render color's R value" )
507510
DEFINE_SCRIPTFUNC_NAMED( ScriptGetColorG, "GetRenderColorG", "Get the render color's G value" )

sp/src/game/client/c_baseentity.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,11 @@ class C_BaseEntity : public IClientEntity
288288
HSCRIPT GetScriptOwnerEntity();
289289
virtual void SetScriptOwnerEntity(HSCRIPT pOwner);
290290

291+
#ifdef MAPBASE_VSCRIPT
292+
HSCRIPT ScriptGetGroundEntity();
293+
void ScriptSetGroundEntity( HSCRIPT hGroundEnt );
294+
#endif
295+
291296
HSCRIPT GetScriptInstance();
292297

293298
HSCRIPT m_hScriptInstance;

sp/src/game/client/client_mapbase.vpc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ $Project
6969
$File "mapbase\c_func_fake_worldportal.h"
7070
$File "mapbase\c_point_glow.cpp"
7171
$File "mapbase\c_vgui_text_display.cpp"
72+
$File "mapbase\c_weapon_custom_hl2.cpp"
7273
$File "mapbase\mapbase_autocubemap.cpp"
7374
}
7475

0 commit comments

Comments
 (0)