You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allows you to mark a weapon to be forcefully transmitted even when offhand.<br>
1026
+
The weapon will remain to be forcefully transmitted until this is called with false again or the weapon is removed!<br>
1027
+
This is only useful if you use the `networking` module with the `holylib_networking_transmit_all_weapons 0` and `holylib_networking_transmit_all_weapons_to_owner 0`<br>
voidNetworking_ForceWeaponTransmit(int entIndex, bool bForceTransmit) // Exposed for pvs.ForceWeaponTransmit
1277
+
{
1278
+
if (bForceTransmit) {
1279
+
g_pForceWeaponTransmitIndexes.Set(entIndex);
1280
+
} else {
1281
+
g_pForceWeaponTransmitIndexes.Clear(entIndex);
1282
+
}
1283
+
}
1284
+
1275
1285
// Full cache persisting across ticks, reset only when the player disconnects.
1276
1286
static ConVar* sv_stressbots = nullptr;
1277
1287
static ConVar networking_transmit_newweapons("holylib_networking_transmit_newweapons", "1", 0, "Experimental - If enabled, weapons that a player equipped/was given are networked for the first x ticks");
0 commit comments