

self: SetNextPrimaryFire( CurTime() + 0.5 ) Here we set it to shoot every 0.5 seconds. This function call below defines - the rate of fire. String quotation may be needed when fired via console.- Called when the left mouse button is pressed function SWEP: PrimaryAttack()

#How to disable physics gun for entities darkrp gmod code#
RunScriptCode (in all games since ) Execute a string of VScript source code in the scope of the entity receiving the input. The script contents are merged with the script scope of the receiving entity. RunScriptFile (in all games since ) Execute a VScript file from disk, without file extension. Can also be invoked by firing an output that does not specify an input. Use !FGD Same as a player invoking +use may not do anything depending on the entity. I/O Format: :::: FireUser1 to FireUser4 Fire the OnUser outputs see User Inputs and Outputs. It can be potentially very dangerous, use with care.

AddOutput Adds a keyvalue/output to this entity. Note: Entities already remove orphaned children upon being removed, but this input removes all children on the same frame, being marginally faster than Kill. Inputs EnableGrab Enable the grab functionality. : Not puntable by Gravity Gun (in all games since ).: Deny player pickup (reserve for NPC) (in all games since ).Using 0 turns off the forced fade altogether. This value gives you some control over when this happens: numbers smaller than 1 cause the prop to fade out at further distances, while those greater than 1 cause it to fade out at closer distances. If start fade is If you specify so in worldspawn, or if the engine is running below DirectX 8 (DX7 in ), props will fade out even if the fade distances above aren't specified.End Fade Dist (fademaxdist) Max fade distance at which the prop is visible. Should be used very sparingly! Is Automatic-Aim Target (is_autoaim_target) (in all games since ) !FGD If set to 1, this entity will slow down aiming movement for consoles and joystick controllers when the entity is under the crosshairs.īaseFadeProp: Start Fade Dist (fademindist) Distance at which the prop starts to fade. Lag Compensation (LagCompensate) (in all games since ) !FGD Set to Yes to lag compensate this entity. Avoid expensive operations in this function, as it may cause performance problems. Thinker function (thinkfunction) (in all games since ) Name of the function within this entity's script that'll be called automatically every 100 milliseconds, or a user-defined interval if the function returns a number.

The scripts are all executed in the same script scope, later ones overwriting any identical variables and functions. Entity Scripts (vscripts) (in all games since ) Space delimited list of VScript files (without file extension) that are executed after all entities have spawned. Effects (effects) !FGD Combination of effect flags to use. Tip: Changing this on runtime still has use, like making matching an entry in S_PreserveEnts will persist the entity on new rounds! Flags (spawnflags) !FGD Toggles exclusive features of an entity, its specific number is determined by the combination of flags added. Dedicated ConVars g_debug_physcannon Enables Gravity Gun debugging, which shows a wire frame outline around objects when picked up(Default: 0) physcannon_cone Changes how wide the pickup range is, lower numbers are wider (Default: 0.97) physcannon_ball_cone To do: Add a description for this variable.(Default: 0.997) physcannon_punt_cone To do: Add a description for this variable.(Default: 0.997) physcannon_minforce To do: Add a description for this variable.(Default: 700.0) physcannon_maxforce To do: Add a description for this variable.(Default: 1500.0) physcannon_maxmass Sets the maximum mass at which an object can be picked up by the gravity gun(Default: 250.0) physcannon_pullforce How much force to be used when pulling objects to the player(Default: 4000.0) physcannon_tracelength How far an object can be pulled from(Default: 250.0) physcannon_mega_enabled Enables Dark Energy Field Manipulator(Default: 0) physcannon_mega_pullforce How much force the Dark Energy Field Manipulator (Default: 8000.0) physcannon_mega_tracelength The distance at which the Dark Energy Field Manipulator will be able to pull an object(Default: 850.0) player_throwforce To do: Add a description for this variable.(Default: 1000.0) KeyValues
