You can read and reply to posts and download all mods without registering.
We're an independent and non-profit fan-site. Find out more about us here.
// Create an object and add it to a container// Parameters in Editor/Design Note:// - addToContainerTo: Name or ID# of container to add to; optional, defaults to self// - addToContainerAdd: Name or ID# of object to add// - addToContainerStack: Optional, sets a stack count on the created objectclass addToContainer extends SqRootScript { function OnBeginScript() { local objAdd = getParam("Add"); if (IsDataSet("done") || !objAdd) { return; } SetData("done", true); local objTo = getParam("To", self); local objStack = getParam("Stack"); local obj = Object.BeginCreate(objAdd); Property.SetSimple(obj, "HasRefs", false); if (objStack) { Property.SetSimple(obj, "StackCount", objStack); } Object.Teleport(obj, Object.Position(objTo), vector()); Object.EndCreate(obj); Link.Create("Contains", objTo, obj); } function getParam(keyRaw, defVal = 0) { local key = "addToContainer" + keyRaw; return key in userparams() ? userparams()[key] : defVal; }}
////Removes special recoil/degradation status from all weapon pickups-ObjProp 621 "GunKick" //A Pistol-ObjProp 621 "GunReliability" //A Pistol-ObjProp 1372 "GunKick" //An Assault Rifle-ObjProp 1372 "GunReliability" //An Assault Rifle-ObjProp 607 "GunKick" //A Shotgun-ObjProp 607 "GunReliability" //A Shotgun-ObjProp 1377 "GunKick" //An EMP Rifle-ObjProp 1377 "GunReliability" //An EMP Rifle
+ObjProp -19 "Scripts" //Shotgun{ "Script 0" "rsdStandardModify" //was ShotgunModify "Script 1" "" "Script 2" "" "Script 3" "" "Don't Inherit" false}+ObjProp -4073 "Scripts" //Hybrid_Shotgun{ "Script 0" "rsdStandardModify" //was ShotgunModify "Script 1" "TrashedShotgun" "Script 2" "" "Script 3" "" "Don't Inherit" FALSE}
ObjProp -19 "Scripts" //Shotgun{ "Script 0" "rsdStandardModify" //was ShotgunModify}ObjProp -4073 "Scripts" //Hybrid_Shotgun{ "Script 0" "rsdStandardModify" //was ShotgunModify}
// fix for the disruption grenades that are supposed to be strong but in fact aren't-StimSource -1309 "Standard Impact"+StimSource -1522 "Standard Impact"{ Intensity 35 Propagator Radius { Life { "Flags" None "Period" 1 "Max Firings" 1 "Intensity Slope" 0.00 } Shape { "Radius" 6.50 "Flags" Line of Sight (raycast) "Dispersion" None } }}