View Single Post
StormishJustice
Member
Join Date: May 2015
Location: In a mysterious place.
Old 04-29-2016 , 14:47   Re: [TF2Items] Item Designer - Advanced Give Item
Reply With Quote #140

Quote:
Originally Posted by Potato Uno View Post
Umm you can do that in the population file itself for MvM without even touching Sourcemod at all.

Here's the code for the giant deflector heavy that shows up in bigrock (from robot_giant.pop). The deflector hat is the u-clank-a, as you can see below:

PHP Code:
        T_TFBot_Giant_Heavyweapons_Deflector
        
{
            
Name "Giant Deflector Heavy"
            
Class Heavyweapons
            Skill Expert
            Health 5000
            ClassIcon heavy_deflector
            Item 
"Deflector"
            
Item "The U-clank-a"
            
Attributes MiniBoss
            WeaponRestrictions PrimaryOnly
            MaxVisionRange 1200
            ItemAttributes
            
{
                
ItemName "Deflector"
                "attack projectiles" 
1
                
"damage bonus" 1.5
            
}
            
CharacterAttributes
            
{
                
"airblast vulnerability multiplier" 0.3
                
"damage force reduction" 0.3
                
"move speed bonus" 0.5
                
"override footstep sound set" 2
            
}
        } 
Well i mean outside mvm, i know it's possible to give a bot a weapon but it tells me that it's not allowed to give a hat to a bot even though it's not even illegal?

EDIT: It actually isn't possible to give weapons to bots and idk why since it's not illegal.
__________________

Last edited by StormishJustice; 04-29-2016 at 14:57.
StormishJustice is offline
Send a message via AIM to StormishJustice Send a message via Yahoo to StormishJustice Send a message via Skype™ to StormishJustice