Skip to content

Latest commit

 

History

96 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PWB2

A brand new weapons base, loosely based on my previous base PWB.

INFO

PWB weapon base is built to function like the weapon systems from Half-Life: 1 / Counter Strike and can fully support weapons from both with minimal adaptation.

USAGE

weapons in PWB2 use LUA's "class" system in order to abstract away the complicated portions. to make a mod using this base, you can either copy an existing weapon or start from scratch.

to make a simple new weapon, define the class, static variables, SFX and then override common functions if/when needed (PrimaryAttack(), SecondaryAttack(), Reload(), initVars() etc)

if you need help with PWB2 or it's utilization of object oriented programming, message 'Packman.09' on Discord or check the LUA documentation for object oriented programming below

https://www.lua.org/pil/16.html

NEW TOOL ANIMATOR FEATURES:

  • PWB tickToolAnimator(): tickToolAnimator(toolAnimator, dt, defaultPoseTransform, playerId, swingamnts, noheldaction)

  • swingamnts + fp_actionX name/tag: (only for first person) you can now define a infinite amount of actions that will be randomly chosen. it randomly chooses a number 1 through the number inputted into swingamnts for x. Best for melee weapons (just uses 'fp_action' if undefined)

  • noheldaction: only does fp/tp_action when forced using the forceActionPose bool (using this with a weapon that has multiple actions using the above system may lead to undefined behavior)

  • fp/tp_secaction: a secondary action position, can only activated with the forceSecondaryActionPose bool

About

A brand new weapons base, loosely based on my previous Teardown weapon base PWB along with Half-Life SDK code

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages