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 Models and Media / Binoculars and Telescopes which 'don't' shoot Files

Author
Message
Ross tra damus
3D Media Maker
20
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Looking to Escape London
Posted: 12th May 2012 17:43 Edited at: 12th May 2012 18:56
Hello All

Want to create your own Items such as 'Binoculars,Telescopes'?

I have been messing about with a model (want to keep this secret) which I wanted to use the FPSC weapon 'zoom' function but without the Item in question 'firing shots' or being able to cause damage of any sorts. As a lot of you know by now this is hard to acheive and I do believe a solution to this issue has not been made available to all users 'so far' in the Forum.
Anyways, I have stumbled across a good way to achieve this just by changing a few details in the 'FPE and Gunspec' files which are needed to create weapons.
NOTE - One 'small' issue is that when your Player picks up the 'Pickup' entity the weapon item (your Item) will not display straight away and you will have to use the LEFT mouse button (Fire) once to correct this which will then allow you to use the item as a 'zoomable' entity.
(Right click to Zoom)

How to Do
Create all the files you need for a standard FPSC weapon (Pickup and Weapon Hud) and use the following FPE and Gunspec details below:
(NOTE - Fill in your own 'texture and model' names plus 'addresses')

FPE Layout



Gunspec Layout



I hope you all get the same results as I did.

All the best of luck

EDIT - If you give this a try could you please let us all know how well it worked for you.
BlackFox
FPSC Master
18
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 12th May 2012 20:01
Very nice, Ross. Works like a charm.

We made binoculars ourselves already, but I used your FPE and gunspec files to test on a second copy and everything was good.

Thank you for passing this on. We'll add it to the vast Archive of Knowledge.


Twitter: @NFoxMedia
The Storyteller 01
17
Years of Service
User Offline
Joined: 11th May 2009
Location: On a silent hill in dead space
Posted: 13th May 2012 00:07
I've long been looking for something like this - thanks Ross!

In case you find my grammar and spelling weird ---> native German speaker ^^
Flatlander
FPSC Tool Maker
19
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 13th May 2012 22:16 Edited at: 13th May 2012 22:21
There were around 7 commands I created for v118 that was going to be used by Cyborg Art. However, he didn't have the time to complete his model pack. These commands were for using non-weapon models (objects) that the character can hold; such as binoculars or anything else the creator wants to make.

Most of these commands are used together in which I created a video showing an example of their use. Click on link below to download video:

http://www.olivetreegames.com/download/drinking_with_FPSC.7z (22MB)

DISABLECINEMATICHANDSBUTTON=X
Description: This sets whether the blocking button can be used or not. This allows for you to use an automated loop. Otherwise, the player uses this button to activate one animation of the object.
Range: X = 0 – blocking button is enabled, X = 1 – blocking button is disabled.
Example: :state=1:disablecinematichandsbutton=1

DISABLEFIREBUTTON=X
Description: This sets whether the fire button can be used or not. Can't shoot the non-gun object.
Range: X = 0 – fire button is enabled, X = 1 – fire button is disabled.
Example: :state=1:disablefirebutton=1

GETCINEMATICHANDS=GunName GunFolder
Description: This sets the player’s weapon by defining the gun name and the folder in which the gun exists. A placeholder entity must exist within the level for this command to work. The place holder entity must be dynamic and must not spawn at the start of the level.
Range: GunName = the name of the gun, GunFolder = the file path to the gun from the generic guns folder.
Example: :state=1:getcinematichands=colt45 ww2\colt45


PREVENTPLRSELECTINGGUN=X
Description: This sets whether the player can select a weapon or not. You would also probably remove the current weapon that the player is holding.
Range: X = 0 – weapon selection is enabled, X = 1 – weapon selection is disabled.
Example: :state=1:preventplrselectinggun=1

STARTCINEMATICHANDS=X Y
Description: This plays the play’s hand animation X and loops it Y times.
Range: X = 1 – start cinematic hands. Y = >1 – number of times to loop cinematic hands.
Example: :state=1:startcinematichands=1 3

"A programmer is just a tool which converts caffeine into code . . . reminds me….. if I had one more brain cell, I could have a synapse! woo hoo, Sparky!

~I'm the Terry of the Flatlands.
Ross tra damus
3D Media Maker
20
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Looking to Escape London
Posted: 13th May 2012 23:36 Edited at: 13th May 2012 23:56
Flatlander

Thank you very much for listing these and the link which I at least will take a good look into at a later date and I'm sure an incredible amount of effects can be created with them.

The main reason I created this thread was because the files can be used in all versions of FPSC which makes them a bit more usable for those who do not wish to upgrade to the latest versions of FPSC.

Thanks again and all the best of luck to you.

EDIT - Just took a look at the video which had me in stitches and I think the drinking effect works 'Great' (reminds me of Duke Nukem) but why OH why the Rick Roll.
Great stuff mate.
Flatlander
FPSC Tool Maker
19
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 13th May 2012 23:53
I didn't mean to hi-jack this in any way as I know what you have done is greatly appreciated by all. I did think that this was something that fits with what you are thinking of regarding using different hand held objects. I think these files (fpe and gunspec layouts can be used with these commands).

BTW, I am waiting with baited breath for your new object model and will be one of the first to purchase!

Thanks for everything you do for the community and all my best to you as well.

"A programmer is just a tool which converts caffeine into code . . . reminds me….. if I had one more brain cell, I could have a synapse! woo hoo, Sparky!

~I'm the Terry of the Flatlands.
Ross tra damus
3D Media Maker
20
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Looking to Escape London
Posted: 14th May 2012 00:02
Flatlander

Just edited the top post and I am very greatful for all you do for FPSC and the community and I'm sorry if my previous post sounded a little off as this was not my intention.

Cheers
Ross
Flatlander
FPSC Tool Maker
19
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 14th May 2012 00:31 Edited at: 14th May 2012 00:32
Here is the gunspec for the bottle. I haven't compared the two yet. Yours and Cyborg Art.



Here is the script I used for the bottle.



I hope this thread is very helpful and useful to a lot of people wanting to do different things with the player holding objects other than guns and also have hands doing different things without holding anything. Thank you for starting it.

Unfortunately I'm not a model maker and was really looking forward to Cyborg Art's hand/arm models. He said he had made a couple and I had been trying to get him to sell them in the store if he can't do a model pack. hint hint.

"A programmer is just a tool which converts caffeine into code . . . reminds me….. if I had one more brain cell, I could have a synapse! woo hoo, Sparky!

~I'm the Terry of the Flatlands.

Login to post a reply

Server time is: 2026-07-07 17:32:49
Your offset time is: 2026-07-07 17:32:49