All pastes #491520 Raw Edit

Stuff

public text v1 · immutable
·published 2007-05-16 18:33 UTC
rendered paste body
util.PrecacheSound("npc/manhack/mh_engine_loop2.wav"); util.PrecacheSound("weapons/rpg/rocket1.wav");
CreateConVar("gc_jet_sound", "GCubed.Jetpack01", false, false); CreateConVar("gc_jetpack", "1", false, false);
function fJetpackPlus( p, c, a ) if (GetConVarNumber("gc_jetpack")==1) then p:SetMoveType(MOVETYPE_FLY); p:EmitSound(GetConVarString("gc_jet_sound"), 70, 100); end end
function fJetpackMinus( p, c, a ) p:SetMoveType(MOVETYPE_WALK); p:StopSound(GetConVarString("gc_jet_sound")); end
concommand.Add( "+jetpack", fJetpackPlus ); concommand.Add( "-jetpack", fJetpackMinus );