AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [DEV] tEntDev - Prop Loader (https://forums.alliedmods.net/showthread.php?t=336088)

Dragokas 01-26-2022 15:25

[DEV] tEntDev - Prop Loader
 
1 Attachment(s)
Description:
Allows you to apply properties on entity from kvtest.txt file previously saved via sm_ted_select (or sm_ted_selectid <id>) command of tEntDev.
Settings (ConVars):
Nothing.
Requirements:
- SourceMod 1.10+
- tEntDev
Command usage samples
  • sm_ted_load <opt. entity index> <opt. property(ies) filter> <opt. kvtest file path/name>
Notice: all arguments are optional.
Filter supports regular expressions. Multiple filters could be specified via whitespace, enquoted as single argument.

PHP Code:

// Apply all properties from kvtest.txt file to aimed target
sm_ted_load

// Apply all properties from kvtest.txt file to entity 4
sm_ted_load "4"

// Apply properties m_vecOrigin and m_angRotation on aim target
sm_ted_load "" "m_vecOrigin m_angRotation"

// Apply all properties from kvtest_other.txt file to entity 4
sm_ted_load "4" "" kvtest_other.txt 

TODO:
- Add support of array-based props. See: #1701
Donate
Donates are very appreciated and welcomed for further inspiration, make me happy, and make next updates came out more often:
- Patreon (Paypal)
- BitCoin
- Ю.Money


All times are GMT -4. The time now is 22:47.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.