Posts: 50
Threads: 12
Joined: Aug 2014
Reputation:
0
is there a way to bind a command and combine this command with a gsc so that i can instantly change to my secondary weapon and from it again back to my primary?
So that there is no waiting time and it instant changes after doing that command.
Posts: 3,535
Threads: 420
Joined: Dec 2010
Reputation:
106
(02-18-2015, 18:52)rvyASVP Wrote: is there a way to bind a command and combine this command with a gsc so that i can instantly change to my secondary weapon and from it again back to my primary?
So that there is no waiting time and it instant changes after doing that command.
Yes, its possible, it exists this command "switchtoweaponimmediate". I guess it works like this:
Code: self switchtoweaponimmediate( "onemanarmy_mp", 0, false );
List of all game functions:
Code: abs
acos
addpitch
addroll
addtestclient
addyaw
adsbuttonpressed
allclientsprint
allowads
allowjump
allowspectateteam
allowsprint
alternatescenecameralinkto
alternatescenecameraunlink
ambientplay
ambientstop
angleclamp
angleclamp180
anglestoforward
anglestoright
anglestoup
animhasnotetrack
announcement
anyammoforweaponmodes
asin
assert
assertex
assertmsg
atan
attach
attachpath
attachshieldmodel
attackbuttonpressed
averagenormal
averagepoint
ban
beginlocationselection
blockteamradar
bullettrace
bullettracepassed
buttonpressed
cameralinkto
cameraunlink
canmantle
canplayerplacesentry
canspawn
canspawnturret
ceil
changefontscaleovertime
clamp
clearalltextafterhudelem
cleargoalyaw
clearlookatent
clearmatchdata
clearperks
cleartargetent
cleartargetentity
cleartargetyaw
clearturrettarget
clientannouncement
clientclaimtrigger
clientprint
clientreleasetrigger
clonebrushmodeltoscriptmodel
cloneplayer
closefile
closeingamemenu
closemenu
closepopupmenu
closer
combineangles
controlslinkto
controlsunlink
cos
createlootmail
createprintchannel
damageconetrace
deactivatechannelvolumes
deactivatereverb
delete
deleteglass
destroy
destroyglass
detach
detachall
detachshieldmodel
detonate
disableaimassist
disablegrenadetouchdamage
disableoffhandweapons
disableplayeruse
disableusability
disableweapons
disableweaponswitch
distance
distance2d
distancesquared
dropitem
dropscavengerbag
earthquake
enableaimassist
enablegrenadetouchdamage
enablelinkto
enableoffhandweapons
enableplayeruse
enableusability
enableweapons
enableweaponswitch
endlobby
endlocationselection
endparty
exitlevel
exp
fadeoutshellshock
fadeovertime
fgetarg
finishplayerdamage
fireweapon
floor
forcemantle
forceusehintoff
forceusehinton
fprintfields
fprintln
fragbuttonpressed
freadln
freehelicopter
freevehicle
freezecontrols
getallvehiclenodes
getammocount
getangledelta
getanimlength
getarraykeys
getassignedteam
getattachignorecollision
getattachmodelname
getattachpos
getattachsize
getattachtagname
getbarrelspinrate
getbrushmodelcenter
getbuildnumber
getbuildversion
getclientmatchdata
getcorpseanim
getcurrentoffhand
getcurrentprimaryweapon
getcurrentweapon
getcurrentweaponclipammo
getdvar
getdvarfloat
getdvarint
getdvarvector
getent
getentarray
getentbynum
getentitynumber
geteye
getfirstarraykey
getfractionmaxammo
getfractionstartammo
getglass
getglassarray
getglassorigin
getgoalspeedmph
getgroundposition
getguid
getlightintensity
getlocalplayerprofiledata
getmapcustom
getmatchdata
getmissileowner
getmode
getmotiontrackervisible
getmovedelta
getnextarraykey
getnormalhealth
getnormalizedmovement
getnorthyaw
getnotetracktimes
getnumparts
getnumvehicles
getoffhandprimaryclass
getoffhandsecondaryclass
getorigin
getpartname
getplayerangles
getplayerdata
getplayerknifemodel
getplayersetting
getplayerviewheight
getplayerweaponmodel
getpointinbounds
getrandomloot
getrestedtime
getspectatingplayer
getstance
getstarttime
getsubstr
getsystemtime
gettagangles
gettagorigin
getteamplayersalive
getteamradar
getteamscore
getthirdpersoncrosshairoffset
gettime
getturretowner
getturrettarget
getvehiclenode
getvehiclenodearray
getvehicleowner
getvelocity
getviewmodel
getweaponammoclip
getweaponammostock
getweaponarray
getweaponflashtagname
getweaponhidetags
getweaponhudiconoverride
getweaponmodel
getweaponslist
getweaponslistall
getweaponslistexclusives
getweaponslistitems
getweaponslistoffhands
getweaponslistprimaries
getwheelsurface
getxuid
givemaxammo
givestartammo
giveweapon
glassradiusdamage
grenadeexplosioneffect
hasperk
hasweapon
hide
hideallparts
hidepart
hidepart_allinstances
int
iprintln
iprintlnbold
isalive
isdefined
isdualwielding
isexplosivedamagemod
isfiringturret
isglassdestroyed
ishost
isitemunlocked
islinked
ismantling
isonground
isonladder
isplayer
isplayernumber
isragdoll
isreloading
isspawner
issplitscreen
isstring
issubstr
isswitchingweapon
istalking
isteamradarblocked
istouching
isturretready
isusingonlinedataoffline
isusingturret
isvalidgametype
isweaponcliponly
isweapondetonationtimed
itemweaponsetammo
joltbody
kc_regweaponforfxremoval
kick
laseraltviewoff
laseraltviewon
laseroff
laseron
laststandrevive
length
lengthsquared
lerpviewangleclamp
line
linkto
linktoblendtotag
loadfx
localtoworldcoords
log
logprint
logstring
magicbullet
makedvarserverinfo
makehard
makesoft
maketurretinoperable
maketurretoperable
maketurretsolid
makeunusable
makeusable
map
map_restart
mapexists
matchend
max
meleebuttonpressed
min
missile_cleartarget
missile_createattractorent
missile_createattractororigin
missile_createrepulsorent
missile_createrepulsororigin
missile_deleteattractor
missile_setflightmodedirect
missile_setflightmodetop
missile_settargetent
missile_settargetpos
movegravity
moveovertime
moveshieldmodel
moveslide
moveto
movex
movey
movez
musicplay
musicstop
newclienthudelem
newhudelem
newteamhudelem
notifyonplayercommand
notsolid
obituary
objective_add
objective_current
objective_delete
objective_icon
objective_onentity
objective_position
objective_state
objective_team
openfile
openmenu
openpopupmenu
openpopupmenunomouse
physicsexplosioncylinder
physicsexplosionsphere
physicsjitter
physicsjolt
physicslaunchclient
physicslaunchserver
physicstrace
pingplayer
placespawnpoint
player_recoilscaleoff
player_recoilscaleon
playerads
playerforcedeathanim
playerhide
playerlinkedoffsetdisable
playerlinkedoffsetenable
playerlinkto
playerlinktoabsolute
playerlinktoblend
playerlinktodelta
playerlinkweaponviewtodelta
playerphysicstrace
playfx
playfx
playfxontag
playfxontagforclients
playlocalsound
playloopedfx
playloopsound
playrumblelooponentity
playrumblelooponposition
playrumbleonentity
playrumbleonposition
playsound
playsoundasmaster
playsoundatpos
playsoundtoplayer
playsoundtoteam
pointonsegmentnearesttopoint
positionwouldtelefrag
precachefxteamthermal
precacheheadicon
precacheitem
precacheleaderboards
precachelocationselector
precachemenu
precacheminimapicon
precachemodel
precachempanim
precacherumble
precacheshader
precacheshellshock
precachestatusicon
precachestring
precacheturret
precachevehicle
predictstreampos
print
print3d
println
quitlobby
quitparty
radarjamoff
radarjamon
radiusdamage
radiusdamage
randomfloat
randomfloatrange
randomint
randomintrange
releaseclaimedtrigger
remotecamerasoundscapeoff
remotecamerasoundscapeon
reset
resetspreadoverride
resettimeout
restoredefaultdroppitch
resumespeed
resumespeed
rotatepitch
rotateroll
rotateto
rotatevelocity
rotateyaw
sayall
sayteam
scaleovertime
scriptmodelclearanim
scriptmodelplayanim
searchforonlinegames
secondaryoffhandbuttonpressed
sendclientmatchdata
sendleaderboards
sendmatchdata
sendranks
setac130ambience
setacceleration
setactionslot
setairresistance
setairresistance
setaispread
setarchive
setautorotationdelay
setblurforplayer
setbottomarc
setcandamage
setcanradiusdamage
setcarddisplayslot
setcardicon
setcardnameplate
setcardtitle
setchannelvolumes
setclientdvar
setclientdvars
setclientmatchdata
setclientmatchdatadef
setclientnamemode
setclock
setclockup
setcontents
setconvergencetime
setcursorhint
setdamagestage
setdeceleration
setdefaultdroppitch
setdepthoffield
setdevdvar
setdevdvarifuninitialized
setdvar
setdvarifuninitialized
setempjammed
setentertime
setexpfog
setgameendtime
setgametypestring
setgoalyaw
setgoalyaw
sethintstring
sethoverparams
sethoverparams
setjitterparams
setleftarc
setlightintensity
setlocalplayerprofiledata
setlookatent
setlookatent
setmapcenter
setmapnamestring
setmatchdata
setmatchdatadef
setmaxpitchroll
setmaxpitchroll
setminimap
setmode
setmodel
setmotionblurmovescale
setmotionblurturnscale
setmotionblurzoomscale
setmotiontrackervisible
setmovespeedscale
setneargoalnotifydist
setneargoalnotifydist
setnormalhealth
setnorthyaw
setoffhandprimaryclass
setoffhandsecondaryclass
setorigin
setperk
setplayerangles
setplayerdata
setplayerignoreradiusdamage
setplayernamestring
setplayerspread
setplayerteamrank
setprintchannel
setpulsefx
setrank
setrearviewrenderenabled
setreverb
setrightarc
setsentrycarried
setsentryowner
setshader
setslowmotion
setspawnweapon
setspectatedefaults
setspreadoverride
setstablemissile
setstance
setsuppressiontime
setswitchnode
settargetent
settargetentity
settargetyaw
settargetyaw
setteamfortrigger
setteamradar
setteamscore
settenthstimer
settenthstimerstatic
settenthstimerup
settext
setthermalbodymaterial
settimer
settimerstatic
settimerup
settoparc
setturningability
setturningability
setturretaccuracy
setturretminimapvisible
setturretmodechangewait
setturrettargetent
setturrettargetent
setturrettargetvec
setturrettargetvec
setturretteam
setvalue
setvehgoalpos
setvehgoalpos
setvehiclelookattext
setvehicleteam
setvehicleteam
setvehweapon
setvehweapon
setvelocity
setviewmodel
setviewmodeldepthoffield
setvotenocount
setvotestring
setvotetime
setvoteyescount
setwaitspeed
setwatersheeting
setwaypoint
setwaypointedgestyle_rotatingicon
setwaypointedgestyle_secondaryarrow
setwaypointiconoffscreenonly
setweaponammoclip
setweaponammostock
setweaponhudiconoverride
setwinningplayer
setwinningteam
setyawspeed
setyawspeed
shellshock
shootturret
show
showallparts
showhudsplash
showpart
showscoreboard
showtoplayer
sightconetrace
sighttracepassed
sin
solid
sortbydistance
soundexists
soundfade
spawn
spawn
spawnfx
spawnhelicopter
spawnplane
spawnsighttrace
spawnstruct
spawnturret
spawnvehicle
sqrt
squared
startac130
startbarrelspin
startfiring
startparty
startpath
startprivatematch
startragdoll
stopac130
stopallrumbles
stopbarrelspin
stopfiring
stopfxontag
stoplocalsound
stoploopsound
stopmoveslide
stoprumble
stopshellshock
stopsounds
strtok
stunplayer
suicide
switchtooffhand
switchtoweapon
switchtoweaponimmediate
tablelookup
tablelookupbyrow
tablelookupistring
tablelookupistringbyrow
tablelookuprownum
takeallweapons
takeweapon
tan
thermalvisionfofoverlayoff
thermalvisionfofoverlayon
thermalvisionoff
thermalvisionon
tolower
transfermarkstonewscriptmodel
transformmove
triggerfx
turretfiredisable
turretfireenable
unblockteamradar
unlink
unsetperk
updateclientnames
updatedmscores
updatescores
updateskill
usebuttonpressed
useby
usetriggerrequirelookat
vectordot
vectorfromlinetopoint
vectorlerp
vectornormalize
vectortoangles
vectortoyaw
vehicle_canturrettargetpoint
vehicle_dospawn
vehicle_finishdamage
vehicle_getarray
vehicle_getbodyvelocity
vehicle_getspawnerarray
vehicle_getspeed
vehicle_getspeed
vehicle_getsteering
vehicle_getthrottle
vehicle_getvelocity
vehicle_isphysveh
vehicle_rotateyaw
vehicle_setspeed
vehicle_setspeed
vehicle_setspeedimmediate
vehicle_teleport
vehicle_turnengineoff
vehicle_turnengineon
vehicledriveto
vehicleturretcontroloff
vehicleturretcontroloff
vehicleturretcontrolon
vehicleturretcontrolon
vehphys_crash
vehphys_disablecrashing
vehphys_enablecrashing
vehphys_launch
vehphys_setconveyorbelt
vehphys_setspeed
vibrate
viewkick
visionsetmissilecam
visionsetmissilecamforplayer
visionsetnaked
visionsetnakedforplayer
visionsetnight
visionsetnightforplayer
visionsetpain
visionsetpainforplayer
visionsetthermal
visionsetthermalforplayer
weaponaltweaponname
weaponburstcount
weaponclass
weaponclipsize
weaponfiretime
weaponhasthermalscope
weaponinheritsperks
weaponinventorytype
weaponisauto
weaponisboltaction
weaponissemiauto
weaponlockfinalize
weaponlockfree
weaponlocknoclearance
weaponlockstart
weaponlocktargettooclose
weaponmaxammo
weaponstartammo
weapontype
willneverchange
worldentnumber
worldpointinreticle_circle
Posts: 50
Threads: 12
Joined: Aug 2014
Reputation:
0
(02-18-2015, 23:25)Yamato Wrote: (02-18-2015, 18:52)rvyASVP Wrote: is there a way to bind a command and combine this command with a gsc so that i can instantly change to my secondary weapon and from it again back to my primary?
So that there is no waiting time and it instant changes after doing that command.
Yes, its possible, it exists this command "switchtoweaponimmediate". I guess it works like this:
Code: self switchtoweaponimmediate( "onemanarmy_mp", 0, false );
List of all game functions:
Code: abs
acos
addpitch
addroll
addtestclient
addyaw
adsbuttonpressed
allclientsprint
allowads
allowjump
allowspectateteam
allowsprint
alternatescenecameralinkto
alternatescenecameraunlink
ambientplay
ambientstop
angleclamp
angleclamp180
anglestoforward
anglestoright
anglestoup
animhasnotetrack
announcement
anyammoforweaponmodes
asin
assert
assertex
assertmsg
atan
attach
attachpath
attachshieldmodel
attackbuttonpressed
averagenormal
averagepoint
ban
beginlocationselection
blockteamradar
bullettrace
bullettracepassed
buttonpressed
cameralinkto
cameraunlink
canmantle
canplayerplacesentry
canspawn
canspawnturret
ceil
changefontscaleovertime
clamp
clearalltextafterhudelem
cleargoalyaw
clearlookatent
clearmatchdata
clearperks
cleartargetent
cleartargetentity
cleartargetyaw
clearturrettarget
clientannouncement
clientclaimtrigger
clientprint
clientreleasetrigger
clonebrushmodeltoscriptmodel
cloneplayer
closefile
closeingamemenu
closemenu
closepopupmenu
closer
combineangles
controlslinkto
controlsunlink
cos
createlootmail
createprintchannel
damageconetrace
deactivatechannelvolumes
deactivatereverb
delete
deleteglass
destroy
destroyglass
detach
detachall
detachshieldmodel
detonate
disableaimassist
disablegrenadetouchdamage
disableoffhandweapons
disableplayeruse
disableusability
disableweapons
disableweaponswitch
distance
distance2d
distancesquared
dropitem
dropscavengerbag
earthquake
enableaimassist
enablegrenadetouchdamage
enablelinkto
enableoffhandweapons
enableplayeruse
enableusability
enableweapons
enableweaponswitch
endlobby
endlocationselection
endparty
exitlevel
exp
fadeoutshellshock
fadeovertime
fgetarg
finishplayerdamage
fireweapon
floor
forcemantle
forceusehintoff
forceusehinton
fprintfields
fprintln
fragbuttonpressed
freadln
freehelicopter
freevehicle
freezecontrols
getallvehiclenodes
getammocount
getangledelta
getanimlength
getarraykeys
getassignedteam
getattachignorecollision
getattachmodelname
getattachpos
getattachsize
getattachtagname
getbarrelspinrate
getbrushmodelcenter
getbuildnumber
getbuildversion
getclientmatchdata
getcorpseanim
getcurrentoffhand
getcurrentprimaryweapon
getcurrentweapon
getcurrentweaponclipammo
getdvar
getdvarfloat
getdvarint
getdvarvector
getent
getentarray
getentbynum
getentitynumber
geteye
getfirstarraykey
getfractionmaxammo
getfractionstartammo
getglass
getglassarray
getglassorigin
getgoalspeedmph
getgroundposition
getguid
getlightintensity
getlocalplayerprofiledata
getmapcustom
getmatchdata
getmissileowner
getmode
getmotiontrackervisible
getmovedelta
getnextarraykey
getnormalhealth
getnormalizedmovement
getnorthyaw
getnotetracktimes
getnumparts
getnumvehicles
getoffhandprimaryclass
getoffhandsecondaryclass
getorigin
getpartname
getplayerangles
getplayerdata
getplayerknifemodel
getplayersetting
getplayerviewheight
getplayerweaponmodel
getpointinbounds
getrandomloot
getrestedtime
getspectatingplayer
getstance
getstarttime
getsubstr
getsystemtime
gettagangles
gettagorigin
getteamplayersalive
getteamradar
getteamscore
getthirdpersoncrosshairoffset
gettime
getturretowner
getturrettarget
getvehiclenode
getvehiclenodearray
getvehicleowner
getvelocity
getviewmodel
getweaponammoclip
getweaponammostock
getweaponarray
getweaponflashtagname
getweaponhidetags
getweaponhudiconoverride
getweaponmodel
getweaponslist
getweaponslistall
getweaponslistexclusives
getweaponslistitems
getweaponslistoffhands
getweaponslistprimaries
getwheelsurface
getxuid
givemaxammo
givestartammo
giveweapon
glassradiusdamage
grenadeexplosioneffect
hasperk
hasweapon
hide
hideallparts
hidepart
hidepart_allinstances
int
iprintln
iprintlnbold
isalive
isdefined
isdualwielding
isexplosivedamagemod
isfiringturret
isglassdestroyed
ishost
isitemunlocked
islinked
ismantling
isonground
isonladder
isplayer
isplayernumber
isragdoll
isreloading
isspawner
issplitscreen
isstring
issubstr
isswitchingweapon
istalking
isteamradarblocked
istouching
isturretready
isusingonlinedataoffline
isusingturret
isvalidgametype
isweaponcliponly
isweapondetonationtimed
itemweaponsetammo
joltbody
kc_regweaponforfxremoval
kick
laseraltviewoff
laseraltviewon
laseroff
laseron
laststandrevive
length
lengthsquared
lerpviewangleclamp
line
linkto
linktoblendtotag
loadfx
localtoworldcoords
log
logprint
logstring
magicbullet
makedvarserverinfo
makehard
makesoft
maketurretinoperable
maketurretoperable
maketurretsolid
makeunusable
makeusable
map
map_restart
mapexists
matchend
max
meleebuttonpressed
min
missile_cleartarget
missile_createattractorent
missile_createattractororigin
missile_createrepulsorent
missile_createrepulsororigin
missile_deleteattractor
missile_setflightmodedirect
missile_setflightmodetop
missile_settargetent
missile_settargetpos
movegravity
moveovertime
moveshieldmodel
moveslide
moveto
movex
movey
movez
musicplay
musicstop
newclienthudelem
newhudelem
newteamhudelem
notifyonplayercommand
notsolid
obituary
objective_add
objective_current
objective_delete
objective_icon
objective_onentity
objective_position
objective_state
objective_team
openfile
openmenu
openpopupmenu
openpopupmenunomouse
physicsexplosioncylinder
physicsexplosionsphere
physicsjitter
physicsjolt
physicslaunchclient
physicslaunchserver
physicstrace
pingplayer
placespawnpoint
player_recoilscaleoff
player_recoilscaleon
playerads
playerforcedeathanim
playerhide
playerlinkedoffsetdisable
playerlinkedoffsetenable
playerlinkto
playerlinktoabsolute
playerlinktoblend
playerlinktodelta
playerlinkweaponviewtodelta
playerphysicstrace
playfx
playfx
playfxontag
playfxontagforclients
playlocalsound
playloopedfx
playloopsound
playrumblelooponentity
playrumblelooponposition
playrumbleonentity
playrumbleonposition
playsound
playsoundasmaster
playsoundatpos
playsoundtoplayer
playsoundtoteam
pointonsegmentnearesttopoint
positionwouldtelefrag
precachefxteamthermal
precacheheadicon
precacheitem
precacheleaderboards
precachelocationselector
precachemenu
precacheminimapicon
precachemodel
precachempanim
precacherumble
precacheshader
precacheshellshock
precachestatusicon
precachestring
precacheturret
precachevehicle
predictstreampos
print
print3d
println
quitlobby
quitparty
radarjamoff
radarjamon
radiusdamage
radiusdamage
randomfloat
randomfloatrange
randomint
randomintrange
releaseclaimedtrigger
remotecamerasoundscapeoff
remotecamerasoundscapeon
reset
resetspreadoverride
resettimeout
restoredefaultdroppitch
resumespeed
resumespeed
rotatepitch
rotateroll
rotateto
rotatevelocity
rotateyaw
sayall
sayteam
scaleovertime
scriptmodelclearanim
scriptmodelplayanim
searchforonlinegames
secondaryoffhandbuttonpressed
sendclientmatchdata
sendleaderboards
sendmatchdata
sendranks
setac130ambience
setacceleration
setactionslot
setairresistance
setairresistance
setaispread
setarchive
setautorotationdelay
setblurforplayer
setbottomarc
setcandamage
setcanradiusdamage
setcarddisplayslot
setcardicon
setcardnameplate
setcardtitle
setchannelvolumes
setclientdvar
setclientdvars
setclientmatchdata
setclientmatchdatadef
setclientnamemode
setclock
setclockup
setcontents
setconvergencetime
setcursorhint
setdamagestage
setdeceleration
setdefaultdroppitch
setdepthoffield
setdevdvar
setdevdvarifuninitialized
setdvar
setdvarifuninitialized
setempjammed
setentertime
setexpfog
setgameendtime
setgametypestring
setgoalyaw
setgoalyaw
sethintstring
sethoverparams
sethoverparams
setjitterparams
setleftarc
setlightintensity
setlocalplayerprofiledata
setlookatent
setlookatent
setmapcenter
setmapnamestring
setmatchdata
setmatchdatadef
setmaxpitchroll
setmaxpitchroll
setminimap
setmode
setmodel
setmotionblurmovescale
setmotionblurturnscale
setmotionblurzoomscale
setmotiontrackervisible
setmovespeedscale
setneargoalnotifydist
setneargoalnotifydist
setnormalhealth
setnorthyaw
setoffhandprimaryclass
setoffhandsecondaryclass
setorigin
setperk
setplayerangles
setplayerdata
setplayerignoreradiusdamage
setplayernamestring
setplayerspread
setplayerteamrank
setprintchannel
setpulsefx
setrank
setrearviewrenderenabled
setreverb
setrightarc
setsentrycarried
setsentryowner
setshader
setslowmotion
setspawnweapon
setspectatedefaults
setspreadoverride
setstablemissile
setstance
setsuppressiontime
setswitchnode
settargetent
settargetentity
settargetyaw
settargetyaw
setteamfortrigger
setteamradar
setteamscore
settenthstimer
settenthstimerstatic
settenthstimerup
settext
setthermalbodymaterial
settimer
settimerstatic
settimerup
settoparc
setturningability
setturningability
setturretaccuracy
setturretminimapvisible
setturretmodechangewait
setturrettargetent
setturrettargetent
setturrettargetvec
setturrettargetvec
setturretteam
setvalue
setvehgoalpos
setvehgoalpos
setvehiclelookattext
setvehicleteam
setvehicleteam
setvehweapon
setvehweapon
setvelocity
setviewmodel
setviewmodeldepthoffield
setvotenocount
setvotestring
setvotetime
setvoteyescount
setwaitspeed
setwatersheeting
setwaypoint
setwaypointedgestyle_rotatingicon
setwaypointedgestyle_secondaryarrow
setwaypointiconoffscreenonly
setweaponammoclip
setweaponammostock
setweaponhudiconoverride
setwinningplayer
setwinningteam
setyawspeed
setyawspeed
shellshock
shootturret
show
showallparts
showhudsplash
showpart
showscoreboard
showtoplayer
sightconetrace
sighttracepassed
sin
solid
sortbydistance
soundexists
soundfade
spawn
spawn
spawnfx
spawnhelicopter
spawnplane
spawnsighttrace
spawnstruct
spawnturret
spawnvehicle
sqrt
squared
startac130
startbarrelspin
startfiring
startparty
startpath
startprivatematch
startragdoll
stopac130
stopallrumbles
stopbarrelspin
stopfiring
stopfxontag
stoplocalsound
stoploopsound
stopmoveslide
stoprumble
stopshellshock
stopsounds
strtok
stunplayer
suicide
switchtooffhand
switchtoweapon
switchtoweaponimmediate
tablelookup
tablelookupbyrow
tablelookupistring
tablelookupistringbyrow
tablelookuprownum
takeallweapons
takeweapon
tan
thermalvisionfofoverlayoff
thermalvisionfofoverlayon
thermalvisionoff
thermalvisionon
tolower
transfermarkstonewscriptmodel
transformmove
triggerfx
turretfiredisable
turretfireenable
unblockteamradar
unlink
unsetperk
updateclientnames
updatedmscores
updatescores
updateskill
usebuttonpressed
useby
usetriggerrequirelookat
vectordot
vectorfromlinetopoint
vectorlerp
vectornormalize
vectortoangles
vectortoyaw
vehicle_canturrettargetpoint
vehicle_dospawn
vehicle_finishdamage
vehicle_getarray
vehicle_getbodyvelocity
vehicle_getspawnerarray
vehicle_getspeed
vehicle_getspeed
vehicle_getsteering
vehicle_getthrottle
vehicle_getvelocity
vehicle_isphysveh
vehicle_rotateyaw
vehicle_setspeed
vehicle_setspeed
vehicle_setspeedimmediate
vehicle_teleport
vehicle_turnengineoff
vehicle_turnengineon
vehicledriveto
vehicleturretcontroloff
vehicleturretcontroloff
vehicleturretcontrolon
vehicleturretcontrolon
vehphys_crash
vehphys_disablecrashing
vehphys_enablecrashing
vehphys_launch
vehphys_setconveyorbelt
vehphys_setspeed
vibrate
viewkick
visionsetmissilecam
visionsetmissilecamforplayer
visionsetnaked
visionsetnakedforplayer
visionsetnight
visionsetnightforplayer
visionsetpain
visionsetpainforplayer
visionsetthermal
visionsetthermalforplayer
weaponaltweaponname
weaponburstcount
weaponclass
weaponclipsize
weaponfiretime
weaponhasthermalscope
weaponinheritsperks
weaponinventorytype
weaponisauto
weaponisboltaction
weaponissemiauto
weaponlockfinalize
weaponlockfree
weaponlocknoclearance
weaponlockstart
weaponlocktargettooclose
weaponmaxammo
weaponstartammo
weapontype
willneverchange
worldentnumber
worldpointinreticle_circle
uhm yeah i tried it and it does not change immediatly and also did just work 1 time
Code: InstaSwap()
{
self endon ("disconnect");
self notifyOnPlayerCommand("insta","+insta");
self waittill ("insta");
if ( self.name == "rekt")
{
sWeapon = self getCurrentWeapon();
if ( isSubStr(sWeapon, "cheytac_") || isSubStr(sWeapon, "barrett_"))
{
self switchtoweaponimmediate( "spas12_mp", 0, false );
}
else if ( isSubStr(sWeapon, "usp_") || isSubStr(sWeapon, "spas12_") || isSubStr(sWeapon, "beretta_") || isSubStr(sWeapon, "model1887_") || isSubStr(sWeapon, "striker_"))
{
self switchtoweaponimmediate( "cheytac_mp", 0, false );
}
}
}
Posts: 3,704
Threads: 147
Joined: Jan 2011
Reputation:
119
Insert loop here with waittill.
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Posts: 50
Threads: 12
Joined: Aug 2014
Reputation:
0
(02-19-2015, 14:50)Nekochan Wrote: Insert loop here with waittill.
where exactly?
besides that its still not instant changing weapons, it also does the animation
Posts: 3,704
Threads: 147
Joined: Jan 2011
Reputation:
119
02-19-2015, 15:26
(This post was last modified: 02-19-2015, 15:27 by Nekochan.)
How and where you call InstaSwap? If I get it your idea, here's how it should work:
Code: InstaSwap()
{
self endon ("disconnect");
self notifyOnPlayerCommand("insta","+insta");
for(;;) { // or while(1)
self waittill ("insta");
if ( self.name == "rekt")
{
sWeapon = self getCurrentWeapon();
if ( isSubStr(sWeapon, "cheytac_") || isSubStr(sWeapon, "barrett_"))
{
self switchtoweaponimmediate( "spas12_mp", 0, false );
}
else if ( isSubStr(sWeapon, "usp_") || isSubStr(sWeapon, "spas12_") || isSubStr(sWeapon, "beretta_") || isSubStr(sWeapon, "model1887_") || isSubStr(sWeapon, "striker_"))
{
self switchtoweaponimmediate( "cheytac_mp", 0, false );
}
}
}
}
Sorry for tabbing, not comfortable to do edits. And does "+insta" even exist?
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Posts: 50
Threads: 12
Joined: Aug 2014
Reputation:
0
02-19-2015, 15:35
(This post was last modified: 02-19-2015, 16:11 by rvyASVP.)
(02-19-2015, 15:26)Nekochan Wrote: How and where you call InstaSwap? If I get it your idea, here's how it should work:
Code: InstaSwap()
{
self endon ("disconnect");
self notifyOnPlayerCommand("insta","+insta");
for(;;) { // or while(1)
self waittill ("insta");
if ( self.name == "rekt")
{
sWeapon = self getCurrentWeapon();
if ( isSubStr(sWeapon, "cheytac_") || isSubStr(sWeapon, "barrett_"))
{
self switchtoweaponimmediate( "spas12_mp", 0, false );
}
else if ( isSubStr(sWeapon, "usp_") || isSubStr(sWeapon, "spas12_") || isSubStr(sWeapon, "beretta_") || isSubStr(sWeapon, "model1887_") || isSubStr(sWeapon, "striker_"))
{
self switchtoweaponimmediate( "cheytac_mp", 0, false );
}
}
}
}
Sorry for tabbing, not comfortable to do edits. And does "+insta" even exist?
K ill try it as soon as i get home and thanks m8
btw i bound +insta to a button like /bind k +insta
(02-19-2015, 15:26)Nekochan Wrote: How and where you call InstaSwap? If I get it your idea, here's how it should work:
Code: InstaSwap()
{
self endon ("disconnect");
self notifyOnPlayerCommand("insta","+insta");
for(;;) { // or while(1)
self waittill ("insta");
if ( self.name == "rekt")
{
sWeapon = self getCurrentWeapon();
if ( isSubStr(sWeapon, "cheytac_") || isSubStr(sWeapon, "barrett_"))
{
self switchtoweaponimmediate( "spas12_mp", 0, false );
}
else if ( isSubStr(sWeapon, "usp_") || isSubStr(sWeapon, "spas12_") || isSubStr(sWeapon, "beretta_") || isSubStr(sWeapon, "model1887_") || isSubStr(sWeapon, "striker_"))
{
self switchtoweaponimmediate( "cheytac_mp", 0, false );
}
}
}
}
Sorry for tabbing, not comfortable to do edits. And does "+insta" even exist?
k i tried it and it still does not work, if i press it, it just normally changes to the secondary with animation and then doesnt even react n dat comman though
Posts: 3,704
Threads: 147
Joined: Jan 2011
Reputation:
119
02-19-2015, 16:24
(This post was last modified: 02-19-2015, 16:28 by Nekochan.)
Try this function instead of 'switchtoweaponimmediate':
Code: self SetSpawnWeapon("wep");
Else you can try following:
Code: self TakeWeapon("wep"); // takes weapon without anim
self GiveWeapon("wep");
self SwitchToWeapon(Immediate)("wep");
.. or put SetSpawnWeapon instead
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Posts: 50
Threads: 12
Joined: Aug 2014
Reputation:
0
02-19-2015, 16:36
(This post was last modified: 02-19-2015, 16:42 by rvyASVP.)
(02-19-2015, 16:24)Nekochan Wrote: Try this function instead of 'switchtoweaponimmediate':
Code: self SetSpawnWeapon("wep");
Else you can try following:
Code: self TakeWeapon("wep"); // takes weapon without anim
self GiveWeapon("wep");
self SwitchToWeapon(Immediate)("wep");
.. or put SetSpawnWeapon instead
so instead of the 'wep' i should put in a wepon or am i wrong?
(02-19-2015, 16:36)rvyASVP Wrote: (02-19-2015, 16:24)Nekochan Wrote: Try this function instead of 'switchtoweaponimmediate':
Code: self SetSpawnWeapon("wep");
Else you can try following:
Code: self TakeWeapon("wep"); // takes weapon without anim
self GiveWeapon("wep");
self SwitchToWeapon(Immediate)("wep");
.. or put SetSpawnWeapon instead
so instead of the 'wep' i should put in a wepon or am i wrong?
nice dat finally works as planned ^^
but theres another thing, if i do that while the spas is doing this reload thing to put another bullet in the chamber, the intervention is going to shoot right after that...
i dont know but is there any way to fix dat?
Posts: 3,704
Threads: 147
Joined: Jan 2011
Reputation:
119
(02-19-2015, 16:36)rvyASVP Wrote: (02-19-2015, 16:24)Nekochan Wrote: Try this function instead of 'switchtoweaponimmediate':
Code: self SetSpawnWeapon("wep");
Else you can try following:
Code: self TakeWeapon("wep"); // takes weapon without anim
self GiveWeapon("wep");
self SwitchToWeapon(Immediate)("wep");
.. or put SetSpawnWeapon instead
so instead of the 'wep' i should put in a wepon or am i wrong?
(02-19-2015, 16:36)rvyASVP Wrote: (02-19-2015, 16:24)Nekochan Wrote: Try this function instead of 'switchtoweaponimmediate':
Code: self SetSpawnWeapon("wep");
Else you can try following:
Code: self TakeWeapon("wep"); // takes weapon without anim
self GiveWeapon("wep");
self SwitchToWeapon(Immediate)("wep");
.. or put SetSpawnWeapon instead
so instead of the 'wep' i should put in a wepon or am i wrong?
nice dat finally works as planned ^^
but theres another thing, if i do that while the spas is doing this reload thing to put another bullet in the chamber, the intervention is going to shoot right after that...
i dont know but is there any way to fix dat?
Put a delay? ( wait .05; )
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
|