// lite WaveSchedule { PointTemplates { PackTemplate { OnSpawnOutput { Target !activator Action RunScriptCode Param " local hPack; for (local hWearable = self.FirstMoveChild(); hWearable != null; hWearable = hWearable.NextMovePeer()) { if(NetProps.GetPropInt(hWearable, `m_AttributeManager.m_Item.m_iItemDefinitionIndex`) == 642) { hPack = hWearable; break; } } if(hPack && hPack.IsValid()) { hPack.ValidateScriptScope(); local hPackScope = hPack.GetScriptScope(); hPackScope.hOwner <- hPack.GetOwner(); hPackScope.PackThink <- function() { local hWeapon = hOwner.GetActiveWeapon(); if(hWeapon && hWeapon.GetSlot() == 0) { hOwner.AddCustomAttribute(`reload time increased`, 0.3, 0.1); hOwner.AddCustomAttribute(`fire rate penalty`, 0.7, 0.1); } return -1; } `PopExtUtil` in getroottable() ? PopExtUtil.AddThinkToEnt(hPack, `PackThink`) : AddThinkToEnt(hPack, `PackThink`) } " } } } CustomWeapon // Engineer passive for more aggressive play { Name "The Frontier's Aggressor" OriginalItemName "The Cozy Camper" "ammo regen" 0.25 "health regen" 10 // "reload time increased hidden" 0.3 // "fire rate penalty HIDDEN" 0.7 "custom item model" models/workshop/player/items/engineer/dec15_winter_backup/dec15_winter_backup.mdl "special item description" "[INFO] Aggressive playstyle. Increases primary/melee firing speed, reload speed, reserve ammo and health/ammo regeneration." } PlayerItemEquipSpawnTemplate { Name PackTemplate ItemName "The Frontier's Aggressor" } ExtraLoadoutItems { Engineer { Secondary "The Frontier's Aggressor" } } }