Quote: " I wonder if there should be a popup HUD when you pick up cash? "
Well, as it stands I left the "you picked up an item" prompt, but that hud could easily be changed to say a value.
Quote: "I would move the cash total display, but that's just me. "
To where, the top right instead of the bottom right?
Quote: "Good luck with your AK47 showing up. MP5 installs V1.03 so you should install V1.09 over the top again."
That is strange having the update embedded in a model pack.
I guess I will install v1.09 again, but it still doesn't explain why the AK is the only one not working.
Oh well, who cares, like I said I always have the AKM.
Quote: "Very nice CE. I was counting on you to take this to the next level. "
Now I am wondering whether to give these scripts away for FREE or make them part of a $5 pack.
However, you two guys seem to be the only ones who comment on it, so I don't know if it is even worth fooling with sharing it with everyone.
The system uses ...
10 Images (0-9) to create 60 huds (10 for each of the six digits) that are used for the currency display.
6 Scripts that activate each other in a series to create the huds for the display based on the global var 1 value.
1 custom pickup script for each item made available for sale. (user created by editing included template)
2 images (sorry/confirmation) for each item made available for sale. (user created by editing included template)
Optional* 1 image per item made available for sale for detailed information display. (user created/item dependent)
Optional* 1 image per cash-pickup amount to prompt the user on how much they just picked up. (user created/amount dependent)
It would be my luck that LEE will create some new
hudtypes that will display some of the gloabal variables. (but that would be welcomed)
Here is the pickup script script used for the MP40 used inthe video...
;Artificial Intelligence Script Conjured
;Header
desc = Pickup MP40 for 1000
;Triggers
:plrwithinzone=0,activated=9:activate=0,hudunshow=mp1kbuyornot,hudunshow=mp1ksorry,state=2
:state=0:settargetname=cash
:state=0:hudreset,hudx=50,hudy=80,hudimagefine=gamecore\huds\user\mp40sorry.dds,hudname=mp1ksorry,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=80,hudimagefine=gamecore\huds\user\mp40.dds,hudname=mp1kbuyornot,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pickedupanitem.tga,hudname=itemprompt,hudhide=1,hudmake=display,state=2
:state=1:rundecal=5
:state=2,plrdistwithin=40:activate=9,globalvar=1,state=3
:state=3,varless=1000:state=4
:state=3,varequal=1000:state=5
:state=3,vargreater=1000:state=5
:state=4:hudshow=mp1ksorry
:state=4,plrwithinzone=0,activated=9:activate=0,hudunshow=mp1kbuyornot,hudunshow=mp1ksorry,state=2
:state=5:hudshow=mp1kbuyornot,state=6
:state=6,scancodekeypressed=21:hudunshow=mp1kbuyornot,hudunshow=mp1ksorry,state=10
:state=6,scancodekeypressed=49:hudunshow=mp1kbuyornot,hudunshow=mp1ksorry,state=7
:state=6,plrwithinzone=0,activated=9:activate=0,hudunshow=mp1kbuyornot,hudunshow=mp1ksorry,state=2
:state=7,plrwithinzone=0,activated=9:activate=0,state=2
:state=10:globalvar=1,decvar=1000,activatetarget=13,playertake,coloff,plrsound=audiobank\misc\ping.wav,hudshow=itemprompt,hudfadeout=itemprompt,state=1
;End of Script
You can see in state=3 we are checking to make sure the player has enough cash.
You can see in state=10 we are decrementing the amount because they chose to buy.
So, if your gun costs say $2500 then the state=3 and state=10 would be edited as follows...
:state=3,varless=2500:state=4
:state=3,varequal=2500:state=5
:state=3,vargreater=2500:state=5
:state=10:globalvar=1,decvar=2500,activatetarget=13,playertake,coloff,plrsound=audiobank\misc\ping.wav,hudshow=itemprompt,hudfadeout=itemprompt,state=1
Of course you would need to change the HUD names and paths if you change to a different weapon, but it is not hard.
Here is the pickup script used for the AK (if I had one), so you can compare the two...
;Artificial Intelligence Script Conjured
;Header
desc = Pickup AK47 for 1000
;Triggers
:plrwithinzone=0,activated=9:activate=0,hudunshow=ak1kbuyornot,hudunshow=ak1ksorry,state=2
:state=0:settargetname=cash
:state=0:hudreset,hudx=50,hudy=80,hudimagefine=gamecore\huds\user\ak1000sorry.dds,hudname=ak1ksorry,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=80,hudimagefine=gamecore\huds\user\ak1000.dds,hudname=ak1kbuyornot,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pickedupanitem.tga,hudname=itemprompt,hudhide=1,hudmake=display,state=2
:state=1:rundecal=5
:state=2,plrdistwithin=40:activate=9,globalvar=1,state=3
:state=3,varless=1000:state=4
:state=3,varequal=1000:state=5
:state=3,vargreater=1000:state=5
:state=4:hudshow=ak1ksorry
:state=4,plrwithinzone=0,activated=9:activate=0,hudunshow=ak1kbuyornot,hudunshow=ak1ksorry,state=2
:state=5:hudshow=ak1kbuyornot,state=6
:state=6,scancodekeypressed=21:hudunshow=ak1kbuyornot,hudunshow=ak1ksorry,state=10
:state=6,scancodekeypressed=49:hudunshow=ak1kbuyornot,hudunshow=ak1ksorry,state=7
:state=6,plrwithinzone=0,activated=9:activate=0,hudunshow=ak1kbuyornot,hudunshow=ak1ksorry,state=2
:state=7,plrwithinzone=0,activated=9:activate=0,state=2
:state=10:globalvar=1,decvar=1000,activatetarget=13,playertake,coloff,plrsound=audiobank\misc\ping.wav,hudshow=itemprompt,hudfadeout=itemprompt,state=1
;End of Script