Skip to content

Commit

Permalink
Merge branch 'master' into nostalgia
Browse files Browse the repository at this point in the history
  • Loading branch information
aleeperezz16 committed Dec 24, 2023
2 parents 15fc2a0 + 9f54246 commit 117b321
Show file tree
Hide file tree
Showing 107 changed files with 4,675 additions and 1,515 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:

testdemos:
name: 'Test demos'
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
container: s1lentq/testdemos:latest
needs: [windows]

Expand Down Expand Up @@ -140,7 +140,7 @@ jobs:
linux:
name: 'Linux'
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
container: s1lentq/linux86buildtools:latest

steps:
Expand Down Expand Up @@ -173,7 +173,11 @@ jobs:
fi
shell: bash

- name: Build using Intel C++ Compiler 19.0
- name: Build using Intel C++ Compiler 19.0 (only for release)
if: |
github.event_name == 'release' &&
github.event.action == 'published' &&
startsWith(github.ref, 'refs/tags/')
run: |
rm -rf build-icc && CC=icc CXX=icpc cmake -B build-icc && cmake --build build-icc -j8
Expand All @@ -189,7 +193,7 @@ jobs:
- name: Move files
run: |
mkdir -p publish/bin/linux32/cstrike/dlls
mv build-icc/regamedll/cs.so publish/bin/linux32/cstrike/dlls/cs.so
mv build-icc/regamedll/cs.so publish/bin/linux32/cstrike/dlls/cs.so 2>/dev/null || true
mv build-gcc/regamedll/cs.so publish/cs-gcc.so
mv regamedll/version/appversion.h publish/appversion.h
mv dist/ publish/
Expand Down Expand Up @@ -221,7 +225,7 @@ jobs:
publish:
name: 'Publish'
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: [windows, testdemos, linux]

steps:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
*.bat
*.log
*.lnk
*.aps
**/msvc/Debug*
**/msvc/Release*
**/msvc/Tests
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ This means that plugins that do binary code analysis (Orpheu for example) probab
| mp_round_restart_delay | 5 | - | - | Number of seconds to delay before restarting a round after a win. |
| mp_hegrenade_penetration | 0 | 0 | 1 | Disable grenade damage through walls.<br/>`0` disabled<br/>`1` enabled |
| mp_nadedrops | 0 | 0 | 2 | Drop a grenade after player death.<br/>`0` disabled<br/>`1` drop first available grenade<br/>`2` drop all grenades |
| mp_weapondrop | 1 | 0 | 3 | Drop player weapon after death.<br/>`0` do not drop weapons after death<br/>`1` drop best/heaviest weapon after death<br/>`2` drop active weapon after death<br/>`3` drop all weapons after death (primary and secondary) |
| mp_ammodrop | 1 | 0 | 2 | Drop ammo on weapon boxes on death or manual drop.<br/>`0` always keep ammo on player<br/>`1` drop all ammo only after death<br/>`2` drop all ammo whenever player drops a weapon |
| mp_roundrespawn_time | 20 | 0 | - | Player cannot respawn until next round if more than N seconds has elapsed since the beginning round.<br />`-1` means no time limit<br /> |
| mp_auto_reload_weapons | 0 | 0 | 1 | Automatically reload each weapon on player spawn.<br/>`0` disabled<br/>`1` enabled |
| mp_refill_bpammo_weapons | 0 | 0 | 2 | Refill amount of backpack ammo up to the max.<br/>`0` disabled<br/>`1` refill backpack ammo on player spawn<br/>`2` refill backpack ammo on player spawn and on the purchase of the item |
Expand Down Expand Up @@ -98,6 +100,7 @@ This means that plugins that do binary code analysis (Orpheu for example) probab
| mp_give_player_c4 | 1 | 0 | 1 | Whether this map should spawn a C4 bomb for a player or not.<br/> `0` disabled<br/>`1` enabled |
| mp_weapons_allow_map_placed | 1 | 0 | 1 | When set, map weapons (located on the floor by map) will be shown.<br/> `0` hide all map weapons.<br/>`1` enabled<br/>`NOTE`: Effect will work after round restart. |
| mp_free_armor | 0 | 0 | 2 | Give free armor on player spawn.<br/>`0` disabled <br/>`1` Give Kevlar <br/>`2` Give Kevlar + Helmet |
| mp_team_flash | 1 | -1 | 1 | Sets the behaviour for Flashbangs on teammates.<br/>`-1` Don't affect teammates neither flash owner <br/>`0` Don't affect teammates <br/>`1` Affects teammates |
| mp_fadetoblack | 0 | 0 | 2 | Observer's screen will fade to black on kill event or permanent.<br/> `0` No fade.<br/>`1` Fade to black and won't be able to watch anybody.<br/>`2` fade to black only on kill moment. |
| mp_falldamage | 1 | 0 | 1 | Damage from falling.<br/>`0` disabled <br/>`1` enabled |
| sv_allchat | 1 | 0 | 1 | Players can receive all other players text chat, team restrictions apply<br/>`0` disabled <br/>`1` enabled |
Expand All @@ -110,6 +113,11 @@ This means that plugins that do binary code analysis (Orpheu for example) probab
| mp_max_alive_name_changes | -1 | -1 | - | Maximum amount of nickname changes when alive<br/>`-1` unlimited<br/>`0` Blocks name changes </br>`>0` Allow to change arbitrary amount of nicks |
| sv_legacy_restart_entities | 0 | 0 | 1 | Legacy restart of entities on new round<br/>`0` disabled<br/>`1` enabled |
| sv_block_vote_commands | 0 | 0 | 1 | When set, blocks `vote` and `votemap` commands.<br/>`0` disabled <br/>`1` enabled |
| mp_dying_time | 3.0 | 0.0 | - | Time for switch to free observing after death.<br/>`0` - disable spectating around death.<br/>`>0.00001` - time delay to start spectate.<br/>`NOTE`: The countdown starts when the player’s death animation is finished. |
| mp_deathmsg_flags | abc | 0 | - | Sets a flags for extra information in the player's death message.<br/>`0` disabled<br/>`a` position where the victim died<br/>`b` index of the assistant who helped the attacker kill the victim<br/>`c` rarity classification bits, e.g., `blinkill`, `noscope`, `penetrated`, etc. |
| mp_assist_damage_threshold | 40 | 0 | 100 | Sets the percentage of damage needed to score an assist. |
| mp_freezetime_duck | 1 | 0 | 1 | Allow players to duck during freezetime.<br/> `0` disabled<br/>`1` enabled |
| mp_freezetime_jump | 1 | 0 | 1 | Allow players to jump during freezetime.<br/> `0` disabled<br/>`1` enabled |
</details>

## How to install zBot for CS 1.6?
Expand Down
2 changes: 2 additions & 0 deletions dep/cppunitlite/msvc/cppunitlite.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
<PlatformToolset Condition="'$(VisualStudioVersion)' == '14.0'">v140</PlatformToolset>
<PlatformToolset Condition="'$(VisualStudioVersion)' == '15.0'">v141</PlatformToolset>
<PlatformToolset Condition="'$(VisualStudioVersion)' == '16.0'">v142</PlatformToolset>
<PlatformToolset Condition="'$(VisualStudioVersion)' == '17.0'">v143</PlatformToolset>
<CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
Expand All @@ -49,6 +50,7 @@
<PlatformToolset Condition="'$(VisualStudioVersion)' == '14.0'">v140</PlatformToolset>
<PlatformToolset Condition="'$(VisualStudioVersion)' == '15.0'">v141</PlatformToolset>
<PlatformToolset Condition="'$(VisualStudioVersion)' == '16.0'">v142</PlatformToolset>
<PlatformToolset Condition="'$(VisualStudioVersion)' == '17.0'">v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
Expand Down
262 changes: 262 additions & 0 deletions dist/delta.lst
Original file line number Diff line number Diff line change
@@ -0,0 +1,262 @@
// structure name
// none == no conditional encode routine
// gamedll routine_name : before transmitting data, invoke the named function from the game .dll to reset fields as needed
// clientdll routine_name : same as above, except the routine is called via the client.dll

clientdata_t none
{
DEFINE_DELTA( flTimeStepSound, DT_INTEGER, 10, 1.0 ),
DEFINE_DELTA( origin[0], DT_SIGNED | DT_FLOAT, 24, 1024.0 ),
DEFINE_DELTA( origin[1], DT_SIGNED | DT_FLOAT, 24, 1024.0 ),
DEFINE_DELTA( velocity[0], DT_SIGNED | DT_FLOAT, 16, 8.0 ),
DEFINE_DELTA( velocity[1], DT_SIGNED | DT_FLOAT, 16, 8.0 ),

DEFINE_DELTA( m_flNextAttack, DT_FLOAT | DT_SIGNED, 22, 1000.0 ),

DEFINE_DELTA( origin[2], DT_SIGNED | DT_FLOAT, 24, 1024.0 ),
DEFINE_DELTA( velocity[2], DT_SIGNED | DT_FLOAT, 16, 8.0 ),

DEFINE_DELTA( ammo_nails, DT_SIGNED | DT_INTEGER, 10, 1.0 ),
DEFINE_DELTA( ammo_shells, DT_SIGNED | DT_INTEGER, 10, 1.0 ),
DEFINE_DELTA( ammo_cells, DT_SIGNED | DT_INTEGER, 10, 1.0 ),
DEFINE_DELTA( ammo_rockets, DT_SIGNED | DT_INTEGER, 10, 1.0 ),

DEFINE_DELTA( m_iId, DT_INTEGER, 5, 1.0 ),

DEFINE_DELTA( punchangle[2], DT_SIGNED | DT_FLOAT, 21, 8.0 ),
DEFINE_DELTA( flags, DT_INTEGER, 32, 1.0 ), // Cut to 3 bits?
DEFINE_DELTA( weaponanim, DT_INTEGER, 8, 1.0 ),
DEFINE_DELTA( health, DT_FLOAT, 17, 1.0 ), // Cut # of bits?
DEFINE_DELTA( maxspeed, DT_FLOAT, 16, 10.0 ),
DEFINE_DELTA( flDuckTime, DT_INTEGER, 10, 1.0 ),
DEFINE_DELTA( view_ofs[2], DT_SIGNED | DT_FLOAT, 10, 4.0 ),
DEFINE_DELTA( punchangle[0], DT_SIGNED | DT_FLOAT, 26, 8192.0 ),
DEFINE_DELTA( punchangle[1], DT_SIGNED | DT_FLOAT, 26, 8192.0 ),
DEFINE_DELTA( viewmodel, DT_INTEGER, 10, 1.0 ),
DEFINE_DELTA( weapons, DT_INTEGER, 32, 1.0 ),

DEFINE_DELTA( pushmsec, DT_INTEGER, 11, 1.0 ),
DEFINE_DELTA( deadflag, DT_INTEGER, 3, 1.0 ),
DEFINE_DELTA( fov, DT_FLOAT, 8, 1.0 ),
DEFINE_DELTA( physinfo, DT_STRING, 1, 1.0 ),
DEFINE_DELTA( bInDuck, DT_INTEGER, 1, 1.0 ),
DEFINE_DELTA( flSwimTime, DT_INTEGER, 10, 1.0 ),
DEFINE_DELTA( waterjumptime, DT_INTEGER, 15, 1.0 ),
DEFINE_DELTA( waterlevel, DT_INTEGER, 2, 1.0 ),

DEFINE_DELTA( iuser1, DT_INTEGER, 3, 1.0 ),
DEFINE_DELTA( iuser2, DT_INTEGER, 6, 1.0 ),
DEFINE_DELTA( iuser3, DT_INTEGER, 8, 1.0 ),
DEFINE_DELTA( iuser4, DT_INTEGER, 2, 1.0 ),

DEFINE_DELTA( vuser2[0], DT_FLOAT, 9, 1.0 ),
DEFINE_DELTA( vuser2[1], DT_FLOAT, 9, 1.0 ),
DEFINE_DELTA( vuser2[2], DT_FLOAT, 9, 1.0 ),

DEFINE_DELTA( vuser3[0], DT_FLOAT, 9, 1.0 ),
DEFINE_DELTA( vuser3[1], DT_FLOAT, 9, 1.0 ),
DEFINE_DELTA( vuser3[2], DT_FLOAT, 9, 1.0 ),

DEFINE_DELTA( vuser4[0], DT_FLOAT, 9, 1.0 ),
DEFINE_DELTA( vuser4[1], DT_FLOAT, 9, 1.0 ),

DEFINE_DELTA( fuser1, DT_FLOAT, 9, 1.0 ),
DEFINE_DELTA( fuser2, DT_FLOAT, 14, 1.0 ),
DEFINE_DELTA( fuser3, DT_FLOAT, 10, 1.0 )
}

entity_state_t gamedll Entity_Encode
{
DEFINE_DELTA( animtime, DT_TIMEWINDOW_8, 8, 1.0 ),
DEFINE_DELTA( frame, DT_FLOAT, 8, 1.0 ),
DEFINE_DELTA( origin[0], DT_SIGNED | DT_FLOAT, 16, 8.0 ),
DEFINE_DELTA( angles[0], DT_ANGLE, 16, 1.0 ),
DEFINE_DELTA( angles[1], DT_ANGLE, 16, 1.0 ),
DEFINE_DELTA( origin[1], DT_SIGNED | DT_FLOAT, 16, 8.0 ),
DEFINE_DELTA( origin[2], DT_SIGNED | DT_FLOAT, 16, 8.0 ),
DEFINE_DELTA( sequence, DT_INTEGER, 8, 1.0 ),
DEFINE_DELTA( modelindex, DT_INTEGER, 10, 1.0 ),
DEFINE_DELTA( movetype, DT_INTEGER, 4, 1.0 ),
DEFINE_DELTA( solid, DT_SHORT, 3, 1.0 ),
DEFINE_DELTA( mins[0], DT_SIGNED | DT_FLOAT, 16, 8.0 ),
DEFINE_DELTA( mins[1], DT_SIGNED | DT_FLOAT, 16, 8.0 ),
DEFINE_DELTA( mins[2], DT_SIGNED | DT_FLOAT, 16, 8.0 ),
DEFINE_DELTA( maxs[0], DT_SIGNED | DT_FLOAT, 16, 8.0 ),
DEFINE_DELTA( maxs[1], DT_SIGNED | DT_FLOAT, 16, 8.0 ),
DEFINE_DELTA( maxs[2], DT_SIGNED | DT_FLOAT, 16, 8.0 ),

DEFINE_DELTA( endpos[0], DT_SIGNED | DT_FLOAT, 13, 1.0 ),
DEFINE_DELTA( endpos[1], DT_SIGNED | DT_FLOAT, 13, 1.0 ),
DEFINE_DELTA( endpos[2], DT_SIGNED | DT_FLOAT, 13, 1.0 ),
DEFINE_DELTA( startpos[0], DT_SIGNED | DT_FLOAT, 13, 1.0 ),
DEFINE_DELTA( startpos[1], DT_SIGNED | DT_FLOAT, 13, 1.0 ),
DEFINE_DELTA( startpos[2], DT_SIGNED | DT_FLOAT, 13, 1.0 ),
DEFINE_DELTA( impacttime, DT_TIMEWINDOW_BIG, 13, 100.0 ),
DEFINE_DELTA( starttime, DT_TIMEWINDOW_BIG, 13, 100.0 ),

DEFINE_DELTA( weaponmodel, DT_INTEGER, 10, 1.0 ),
DEFINE_DELTA( owner, DT_INTEGER, 5, 1.0 ),
DEFINE_DELTA( effects, DT_INTEGER, 8, 1.0 ),
DEFINE_DELTA( eflags, DT_INTEGER, 1, 1.0 ),
DEFINE_DELTA( angles[2], DT_ANGLE, 16, 1.0 ),
DEFINE_DELTA( colormap, DT_INTEGER, 16, 1.0 ),
DEFINE_DELTA( framerate, DT_SIGNED | DT_FLOAT, 8, 16.0 ),
DEFINE_DELTA( skin, DT_SHORT | DT_SIGNED, 9, 1.0 ),
DEFINE_DELTA( controller[0], DT_BYTE, 8, 1.0 ),
DEFINE_DELTA( controller[1], DT_BYTE, 8, 1.0 ),
DEFINE_DELTA( controller[2], DT_BYTE, 8, 1.0 ),
DEFINE_DELTA( controller[3], DT_BYTE, 8, 1.0 ),
DEFINE_DELTA( blending[0], DT_BYTE, 8, 1.0 ),
DEFINE_DELTA( blending[1], DT_BYTE, 8, 1.0 ),
DEFINE_DELTA( body, DT_INTEGER, 18, 1.0 ),
DEFINE_DELTA( rendermode, DT_INTEGER, 8, 1.0 ),
DEFINE_DELTA( renderamt, DT_INTEGER, 8, 1.0 ),
DEFINE_DELTA( renderfx, DT_INTEGER, 8, 1.0 ),
DEFINE_DELTA( scale, DT_FLOAT, 16, 256.0 ),
DEFINE_DELTA( rendercolor.r, DT_BYTE, 8, 1.0 ),
DEFINE_DELTA( rendercolor.g, DT_BYTE, 8, 1.0 ),
DEFINE_DELTA( rendercolor.b, DT_BYTE, 8, 1.0 ),
DEFINE_DELTA( aiment, DT_INTEGER, 11, 1.0 ),
DEFINE_DELTA( basevelocity[0], DT_SIGNED | DT_FLOAT, 16, 8.0 ),
DEFINE_DELTA( basevelocity[1], DT_SIGNED | DT_FLOAT, 16, 8.0 ),
DEFINE_DELTA( basevelocity[2], DT_SIGNED | DT_FLOAT, 16, 8.0 ),

DEFINE_DELTA( iuser4, DT_INTEGER, 2, 1.0 )
}

entity_state_player_t gamedll Player_Encode
{
DEFINE_DELTA( animtime, DT_TIMEWINDOW_8, 8, 1.0 ),
DEFINE_DELTA( frame, DT_FLOAT, 8, 1.0 ),
DEFINE_DELTA( origin[0], DT_SIGNED | DT_FLOAT, 24, 32.0 ),
DEFINE_DELTA( angles[0], DT_ANGLE, 16, 1.0 ),
DEFINE_DELTA( angles[1], DT_ANGLE, 16, 1.0 ),
DEFINE_DELTA( origin[1], DT_SIGNED | DT_FLOAT, 24, 32.0 ),
DEFINE_DELTA( origin[2], DT_SIGNED | DT_FLOAT, 24, 32.0 ),
DEFINE_DELTA( gaitsequence, DT_INTEGER, 8, 1.0 ),
DEFINE_DELTA( sequence, DT_INTEGER, 8, 1.0 ),
DEFINE_DELTA( modelindex, DT_INTEGER, 10, 1.0 ),
DEFINE_DELTA( movetype, DT_INTEGER, 4, 1.0 ),
DEFINE_DELTA( solid, DT_SHORT, 3, 1.0 ),
DEFINE_DELTA( mins[0], DT_SIGNED | DT_FLOAT, 16, 8.0 ),
DEFINE_DELTA( mins[1], DT_SIGNED | DT_FLOAT, 16, 8.0 ),
DEFINE_DELTA( mins[2], DT_SIGNED | DT_FLOAT, 16, 8.0 ),
DEFINE_DELTA( maxs[0], DT_SIGNED | DT_FLOAT, 16, 8.0 ),
DEFINE_DELTA( maxs[1], DT_SIGNED | DT_FLOAT, 16, 8.0 ),
DEFINE_DELTA( maxs[2], DT_SIGNED | DT_FLOAT, 16, 8.0 ),
DEFINE_DELTA( weaponmodel, DT_INTEGER, 10, 1.0 ),
// DEFINE_DELTA( team, DT_INTEGER, 4, 1.0 )
// DEFINE_DELTA( playerclass, DT_INTEGER, 4, 1.0 )
DEFINE_DELTA( owner, DT_INTEGER, 5, 1.0 ),
DEFINE_DELTA( effects, DT_INTEGER, 16, 1.0 ),
DEFINE_DELTA( angles[2], DT_ANGLE, 16, 1.0 ),
DEFINE_DELTA( colormap, DT_INTEGER, 16, 1.0 ),
DEFINE_DELTA( framerate, DT_SIGNED | DT_FLOAT, 8, 16.0 ),
DEFINE_DELTA( skin, DT_SHORT | DT_SIGNED, 9, 1.0 ),
DEFINE_DELTA( controller[0], DT_BYTE, 8, 1.0 ),
DEFINE_DELTA( controller[1], DT_BYTE, 8, 1.0 ),
DEFINE_DELTA( controller[2], DT_BYTE, 8, 1.0 ),
DEFINE_DELTA( controller[3], DT_BYTE, 8, 1.0 ),
DEFINE_DELTA( blending[0], DT_BYTE, 8, 1.0 ),
DEFINE_DELTA( blending[1], DT_BYTE, 8, 1.0 ),
DEFINE_DELTA( body, DT_INTEGER, 9, 1.0 ),
DEFINE_DELTA( rendermode, DT_INTEGER, 8, 1.0 ),
DEFINE_DELTA( renderamt, DT_INTEGER, 8, 1.0 ),
DEFINE_DELTA( renderfx, DT_INTEGER, 8, 1.0 ),
DEFINE_DELTA( scale, DT_FLOAT, 16, 256.0 ),
DEFINE_DELTA( rendercolor.r, DT_BYTE, 8, 1.0 ),
DEFINE_DELTA( rendercolor.g, DT_BYTE, 8, 1.0 ),
DEFINE_DELTA( rendercolor.b, DT_BYTE, 8, 1.0 ),
DEFINE_DELTA( friction, DT_SIGNED | DT_FLOAT, 16, 8.0 ),
DEFINE_DELTA( usehull, DT_INTEGER, 1, 1.0 ),
DEFINE_DELTA( gravity, DT_SIGNED | DT_FLOAT, 16, 32.0 ),
DEFINE_DELTA( aiment, DT_INTEGER, 11, 1.0 ),
DEFINE_DELTA( basevelocity[0], DT_SIGNED | DT_FLOAT, 16, 8.0 ),
DEFINE_DELTA( basevelocity[1], DT_SIGNED | DT_FLOAT, 16, 8.0 ),
DEFINE_DELTA( basevelocity[2], DT_SIGNED | DT_FLOAT, 16, 8.0 ),
DEFINE_DELTA( spectator, DT_INTEGER, 1, 1.0 )

DEFINE_DELTA( iuser4, DT_INTEGER, 2, 1.0 )
}

custom_entity_state_t gamedll Custom_Encode
{
DEFINE_DELTA( rendermode, DT_INTEGER, 8, 1.0 ),
DEFINE_DELTA( origin[0], DT_SIGNED | DT_FLOAT, 17, 8.0 ),
DEFINE_DELTA( origin[1], DT_SIGNED | DT_FLOAT, 17, 8.0 ),
DEFINE_DELTA( origin[2], DT_SIGNED | DT_FLOAT, 17, 8.0 ),
DEFINE_DELTA( angles[0], DT_SIGNED | DT_FLOAT, 17, 8.0 ),
DEFINE_DELTA( angles[1], DT_SIGNED | DT_FLOAT, 17, 8.0 ),
DEFINE_DELTA( angles[2], DT_SIGNED | DT_FLOAT, 17, 8.0 ),
DEFINE_DELTA( sequence, DT_INTEGER, 16, 1.0 ),
DEFINE_DELTA( skin, DT_INTEGER, 16, 1.0 ),
DEFINE_DELTA( modelindex, DT_INTEGER, 16, 1.0 ),
DEFINE_DELTA_POST( scale, DT_FLOAT, 8, 1.0, 0.1 ),
DEFINE_DELTA( body, DT_INTEGER, 8, 1.0 ),
DEFINE_DELTA( rendercolor.r, DT_BYTE, 8, 1.0 ),
DEFINE_DELTA( rendercolor.g, DT_BYTE, 8, 1.0 ),
DEFINE_DELTA( rendercolor.b, DT_BYTE, 8, 1.0 ),
DEFINE_DELTA( renderfx, DT_INTEGER, 8, 1.0 ),
DEFINE_DELTA( renderamt, DT_INTEGER, 8, 1.0 ),
DEFINE_DELTA( frame, DT_FLOAT, 8, 1.0 ),
DEFINE_DELTA_POST( animtime, DT_FLOAT, 8, 1.0, 0.1 )
}

usercmd_t none
{
DEFINE_DELTA( lerp_msec, DT_SHORT, 9, 1.0 ),
DEFINE_DELTA( msec, DT_BYTE, 8, 1.0 ),
DEFINE_DELTA( viewangles[1], DT_ANGLE, 16, 1.0 ),
DEFINE_DELTA( viewangles[0], DT_ANGLE, 16, 1.0 ),
DEFINE_DELTA( buttons, DT_SHORT, 16, 1.0 ),
DEFINE_DELTA( forwardmove, DT_SIGNED | DT_FLOAT, 12, 1.0 ),
DEFINE_DELTA( lightlevel, DT_BYTE, 8, 1.0 ),
DEFINE_DELTA( sidemove, DT_SIGNED | DT_FLOAT, 12, 1.0 ),
DEFINE_DELTA( upmove, DT_SIGNED | DT_FLOAT, 12, 1.0 ),
DEFINE_DELTA( impulse, DT_BYTE, 8, 1.0 ),
DEFINE_DELTA( viewangles[2], DT_ANGLE, 16, 1.0 ),
DEFINE_DELTA( impact_index, DT_INTEGER, 6, 1.0 ),
DEFINE_DELTA( impact_position[0], DT_SIGNED | DT_FLOAT, 16, 8.0 ),
DEFINE_DELTA( impact_position[1], DT_SIGNED | DT_FLOAT, 16, 8.0 ),
DEFINE_DELTA( impact_position[2], DT_SIGNED | DT_FLOAT, 16, 8.0 )
}

weapon_data_t none
{
DEFINE_DELTA( m_flTimeWeaponIdle, DT_FLOAT | DT_SIGNED, 22, 1000.0 ),
DEFINE_DELTA( m_flNextPrimaryAttack, DT_FLOAT | DT_SIGNED, 22, 1000.0 ),
DEFINE_DELTA( m_flNextReload, DT_FLOAT | DT_SIGNED, 22, 1000.0 ),
DEFINE_DELTA( m_fNextAimBonus, DT_FLOAT | DT_SIGNED, 22, 1000.0 ),
DEFINE_DELTA( m_flNextSecondaryAttack, DT_FLOAT | DT_SIGNED, 22, 1000.0 ),
DEFINE_DELTA( m_iClip, DT_SIGNED | DT_INTEGER, 10, 1.0 ),
DEFINE_DELTA( m_flPumpTime, DT_FLOAT | DT_SIGNED, 22, 1000.0 ),
DEFINE_DELTA( m_fInSpecialReload, DT_INTEGER, 2, 1.0 ),
DEFINE_DELTA( m_fReloadTime, DT_FLOAT, 16, 100.0 ),
DEFINE_DELTA( m_fInReload, DT_INTEGER, 1, 1.0 ),
DEFINE_DELTA( m_fAimedDamage, DT_FLOAT, 22, 1000.0 ),
DEFINE_DELTA( m_fInZoom, DT_INTEGER, 8, 1.0 ),
DEFINE_DELTA( m_iWeaponState, DT_INTEGER, 7, 1.0 )
DEFINE_DELTA( m_iId, DT_INTEGER, 5, 1.0 )
DEFINE_DELTA( fuser1, DT_SIGNED | DT_FLOAT, 22, 1000.0 ),
DEFINE_DELTA( fuser2, DT_SIGNED | DT_FLOAT, 22, 128.0 ),
DEFINE_DELTA( fuser3, DT_SIGNED | DT_FLOAT, 22, 128.0 ),
DEFINE_DELTA( iuser1, DT_SIGNED | DT_INTEGER, 16, 128.0 )
}

event_t none
{
DEFINE_DELTA( entindex, DT_INTEGER, 11, 1.0 ),
DEFINE_DELTA( bparam1, DT_INTEGER, 1, 1.0 ),
DEFINE_DELTA( bparam2, DT_INTEGER, 1, 1.0 ),
DEFINE_DELTA( origin[0], DT_SIGNED | DT_FLOAT, 26, 8192.0 ),
DEFINE_DELTA( origin[1], DT_SIGNED | DT_FLOAT, 26, 8192.0 ),
DEFINE_DELTA( origin[2], DT_SIGNED | DT_FLOAT, 26, 8192.0 ),
DEFINE_DELTA( fparam1, DT_FLOAT | DT_SIGNED, 20, 100.0 ),
DEFINE_DELTA( fparam2, DT_FLOAT | DT_SIGNED, 20, 100.0 ),
DEFINE_DELTA( iparam1, DT_INTEGER | DT_SIGNED, 18, 1.0 ),
DEFINE_DELTA( iparam2, DT_INTEGER | DT_SIGNED, 18, 1.0 ),
DEFINE_DELTA( angles[0], DT_SIGNED | DT_FLOAT, 26, 8192.0 ),
DEFINE_DELTA( angles[1], DT_SIGNED | DT_FLOAT, 26, 8192.0 ),
DEFINE_DELTA( angles[2], DT_SIGNED | DT_FLOAT, 26, 8192.0 ),
DEFINE_DELTA( ducking, DT_INTEGER, 1, 1.0 )
}
Loading

0 comments on commit 117b321

Please sign in to comment.