View Single Post
Author Message
NakedSnake
Junior Member
Join Date: Nov 2017
Old 03-22-2022 , 18:08   [TF2] Custom powerup entities
Reply With Quote #1

This Module allows Plugin devs to create their very own custom powerup from scratch

Features
  • team specific pickup
  • player specific visibility / interaction
  • optional auto despawn
  • 3 custom int and floats

Things to note!
  • SetAnimation requires you to know if the named animation exists in the model the powerup uses, otherwise the plugin will hang and give memory access errors
  • When using a custom model for powerup, be sure that the model has a collision model attached to it, otherwise it will not detect touch
  • I've only tested this working for TF2, I am unsure if it would be stable for other source games

Installation
  • Extract custom_powerups_source.zip
  • move 'addons' folder into your 'tf' folder
  • Done!

Usage
just include 'Custom_Powerups' into plugins you're making
see 'testpowerup.sp' for proper usage


Video demo

I have included testpowerup.sp to show how to properly set up a brand new custom powerup plugin

I'll be happy to answer questions or suggestions aboutthis module
Attached Files
File Type: zip custom_powerups_assets.zip (294.3 KB, 66 views)
File Type: zip custom_powerups_source.zip (47.0 KB, 80 views)

Last edited by NakedSnake; 03-22-2022 at 18:50.
NakedSnake is offline