Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / help with call of duty knife scipt

Author
Message
dark zero
13
Years of Service
User Offline
Joined: 2nd Apr 2011
Location:
Posted: 3rd Feb 2012 01:16
using the new commands I tried to do a scipt to use the knife like cod so when you press alt remove current weapon, give plr a knife, fire it, remove knife and give plr the weapon.

this is it:

;Artificial Intelligence Script

;Header

desc =

;Triggers

state=0:SCANCODEKEYPRESSED=56:removeplrweapon=EAI\LEDWHITE,giveplrweapon=EAI\COMBATKNIFE,plraction=1:giveplrweapon=EAI\LEDWHITE


it doesnt work someone could help me please?
gozzy1999
13
Years of Service
User Offline
Joined: 11th Jun 2011
Location: in the closet
Posted: 4th Feb 2012 09:24
removeplrweapon gets riud of your own, you do know that right?

''Make sure your hands are clean before you point the finger''
Cross Hair Games
15
Years of Service
User Offline
Joined: 26th Jan 2009
Location: Canada Eh\'
Posted: 6th Feb 2012 01:40 Edited at: 6th Feb 2012 01:41
ya thats what he want, but not sure if its the best way to go at things. You start out by switching to actions (the : after state=0) Then later have another colon in the same state, switching it back to conditions. You place your conditions first, then actions, and if you need conditions after actions, then you link it to a new state
what about:
:state=0:state=1
:state=1,SCANCODEKEYPRESSED=56:state=2
:sate=2:removeplrweapon=(current weapon),giveplrweapon=EAI\COMBATKNIFE,useweapon=0,giveplrweapon=(current weapon),state=0

but replace (current weapon) with the weapon the player will be holding at the time

Cross Hair Games
15
Years of Service
User Offline
Joined: 26th Jan 2009
Location: Canada Eh\'
Posted: 6th Feb 2012 01:54 Edited at: 6th Feb 2012 06:42
Sorry for double post

tried my script, didnt work, it does the animations of hiding the gun, but instead of knifing, it just pulls the gun back out. going to look at a script list and see if theres a better action to use the current weapon. Also the action, give plrweapon, only allocates a slot for the knife, not pull it out. I'll let you know when I get the desired results

----------EDIT------------
After further investigation, it is not possible with the current conditions and actions in FPSC Vanilla. Actions like : removeplrweapon, giveplrweapon, plraction Dont even exist... So this is sadly one feature that will have to wait, etheir the 1.19 is update, or future updates

TheDesertEagle
13
Years of Service
User Offline
Joined: 7th Jul 2011
Location: Canada - Who knows where else???
Posted: 6th Feb 2012 23:06 Edited at: 6th Feb 2012 23:08
hey your back!!,anyways it would not work because you would lose your weapon then the knife would come,thats it you would have to add plrshoot command after THEN giving the last weapon back hence not having all the ammo you had last
you did that all but you wont be getting your ammo back

Joey-May god have mercy upon my enemies, because I won't.
Favourite Game-Call Of Duty MW2
Cross Hair Games
15
Years of Service
User Offline
Joined: 26th Jan 2009
Location: Canada Eh\'
Posted: 12th Feb 2012 06:35
Quote: "hey your back!!,"

Me or him? haha

ladas51
13
Years of Service
User Offline
Joined: 26th Sep 2011
Location:
Posted: 2nd Mar 2012 20:47
What about
:state=0:state=1
:state=1,SCANCODEKEYPRESSED=56:state=2
:sate=2:hideplrweapons,giveplrweapon=TF341\O3SDX,useweapon=0,on=showplrweapon,state=0
ladas51
13
Years of Service
User Offline
Joined: 26th Sep 2011
Location:
Posted: 2nd Mar 2012 21:03
try this one
:state=0:state=1
:state=1,SCANCODEKEYPRESSED=56:state=2
:sate=2:hideplrweapon,giveplrweapon=TF341\O3SDX,plrshoot=0,removeplrweap=TF341\O3SDX,showplrweap,state=0
it doas not work but if you make if you make a few changes will maybe work
The Zombie Killer
13
Years of Service
User Offline
Joined: 27th Mar 2011
Location: Gold Coast, Australia
Posted: 3rd Mar 2012 09:26 Edited at: 3rd Mar 2012 09:27


-TZK

ladas51
13
Years of Service
User Offline
Joined: 26th Sep 2011
Location:
Posted: 6th Mar 2012 08:04
the main idea is that the player must be able to melee no matter what weapon is using so we dont want the player to melee if he has only the ledwhite

Login to post a reply

Server time is: 2024-11-24 03:05:48
Your offset time is: 2024-11-24 03:05:48