Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Free FPS Starter Scripts!!

Discussion in 'Made With Unity' started by viral-vector, Nov 11, 2010.

  1. viral-vector

    viral-vector

    Joined:
    Apr 12, 2010
    Posts:
    248
    FPX Zero : FPS Construction Package

    FPS Construction Package Developed for UNITY3D

    The system is designed to assist Unity developers get their projects and prototypes to Speed.
    The system is designed to construct First Person Shooter. The system was written in order for users to use each script independently, or in conjunction to assist development of shooters, and other game types!!!.

    Current Version: FPX ZERO [beta 1.0] Unity 3.1 Based!!!

    PLAY HERE:
    http://www.kongregate.com/games/L4mishotiz/fpx-showcase

    DOWNLOAD HERE:
    GET IT HERE

    Escape : Start / Pause
    Mouse1 : Fire
    Mouse2 : Aim
    Mouse3 : Detonate Remote Grenades
    X : cycle fire modes/ cycle Grenades
    Numbers + Mouse Wheel = Cycle Weapons
    E : Enter Vehicles + Mount Weapons
    F : Flash Light
    R : Reload
    Space : Jump
    Ctrl : Crouch
    Shift : Run


    The Package Includes:
    * Weapon Fire Modes : Single, Assault, Burst
    * Weapons : Spread, recoil, kickback, Bobbing Sway
    * Weapons : Bullet Holes, Effects
    * Weapons : Fire Mode Switching
    * Weapons : Buck Shots
    * Adaptive cross-hairs
    * Weapons : Aim down sights, Scope + Breathing,
    * Weapons : Posing wall Avoidance
    * Weapon and Camera Bobbing:
    * Weapon Select Script : Numeric, Scroll wheel, and Letter based
    * Weapons Select Script supports for as many weapons as you like, using Keyboard keys (ex. g = grenade)
    * Mounted Weapons
    * Player Script : Health + Health Regeneration (ala Halo), Foot Steps, Player Phrases, Falling Damage
    * Crouch, Running Aiming : Added to Unity Default FPS Controller(Unity3.1)
    * Blood On Screen
    * Ability to Enter Mounted Weapons, Vehicles, and Any other Desired game Object (*Need Vehicle Code, or use basic provided in package)
    * Flash light, pulsing lights, flashing lights script
    * Spawning Script : Spawn enemies, health, etc...
    * Damage Giving Receiving Scripts: any object can receive, or give damage
    * Simple Gui + Pause Menu Scripts
    * Explosive luncher : Used in conjunction with explosive script ( used for grenades, or RPGs, etc)
    * Explosive Scripts : Sticky, remote, frag, impact, proximity, and smoke explosives


    * Simple Enemy AI : Two Scripts


    * Included "Collision Checker.js" script on UNITY WIKI
    * Included "Mouse Look.js" : Must Use for Recoil to work
     
    Last edited: May 23, 2011
  2. Darkhazard

    Darkhazard

    Joined:
    Oct 4, 2010
    Posts:
    105
    Wow those are some pretty good scripts. Thank you for sharing them!

    This is definately something that will come in handy for noobs. From everything I've seen so far, it's good code too.
     
  3. RobbieDingo

    RobbieDingo

    Joined:
    Jun 2, 2008
    Posts:
    484
    First link (RayShoot) = "File not found. Probably it was deleted"?
     
    The_scripting_guy likes this.
  4. Ullukai

    Ullukai

    Joined:
    Aug 24, 2010
    Posts:
    746
    im getting the same thing on the first link ..= file not found ... thanks anyways
     
    zver1uzbek likes this.
  5. viral-vector

    viral-vector

    Joined:
    Apr 12, 2010
    Posts:
    248
  6. granada

    granada

    Joined:
    Oct 31, 2010
    Posts:
    135
    Hi there l4mishotiz,would it be possible to zip them up into a single download i will
    have to wait 450 seconds for every download.Then it sometimes resets back to the start.

    Dave
     
  7. StephenL

    StephenL

    Joined:
    Oct 18, 2010
    Posts:
    218
    This would help me out too, or find a place where you don't have to wait, like Box.net
     
  8. viral-vector

    viral-vector

    Joined:
    Apr 12, 2010
    Posts:
    248
    I have to keep them separate for now. Only because this package is still missing a few scripts i have to clean up. Also These scripts are basically beta or alpha releases. I will update them with new features. So for now it makes sense to keep them separate. But i will look into other hosting options.
    My WeaponBobber, Player Handler, cross-hairs, and others. All and All, at least the final package will include. `at least 10 more scripts, prefabs, and project folder.
    Please refer to my project to view how these additional scripts, can help build an fps quickly.
     
    Last edited: Nov 12, 2010
  9. granada

    granada

    Joined:
    Oct 31, 2010
    Posts:
    135
    Many thanks l4mishotiz :cool:.

    Dave
     
  10. defjr

    defjr

    Joined:
    Apr 27, 2009
    Posts:
    436
    Can you at least upload them here on the forum as attachments? I have to wait almost 20 minutes between downloads.
     
  11. viral-vector

    viral-vector

    Joined:
    Apr 12, 2010
    Posts:
    248
    Please Leave me any suggestions, And any features you will like to see, in the future.
    Also I would like some1 to test my weapon select script;....You can easily.
     
  12. raymix

    raymix

    Joined:
    Aug 25, 2010
    Posts:
    192
    Hi, thanks for sharing
    first 2 scripts are the same link, can u please fix that?

    RayShoot
    RayWeaponSelect

    so yeah, cant help testing weapon select if we cant download it, mate

    edit: for those of you guys who are frustrated by the way author have done uploads, google for "online proxy" servers and use them to avoid time limits. They are kind of giving you "different IP". No installations needed, just paste links into text fields and you're set, but be careful with them, if you suspect something or surveys comes up, get out of that virus hole
     
    Last edited: Nov 14, 2010
  13. Nikolay116

    Nikolay116

    Joined:
    Mar 21, 2010
    Posts:
    421
    can you place them into one archive please?

    thanks
     
  14. raymix

    raymix

    Joined:
    Aug 25, 2010
    Posts:
    192
  15. StephenL

    StephenL

    Joined:
    Oct 18, 2010
    Posts:
    218
    Thanks for the link. It helps not having to wait. :p
     
  16. raymix

    raymix

    Joined:
    Aug 25, 2010
    Posts:
    192
    thanks to these scripts, i made a huge leap and learned a lot tonight.

    for nade to emit more extra particles:
    create 3 prefabs: 1 nade mesh, 1 explosion particle, 1 smoke particle
    when making particles, leave autodestruct switch ON

    add var at begining:
    var explosionSmoke : GameObject;

    add this line after: var explosion : GameObject = Instantiate (Explo......
    var explosionSmoke : GameObject = Instantiate (ExplosionSmoke, transform.position,transform.rotation);

    add script to nade mesh prefab.

    now to figure out the launcher...
     
    Last edited: Nov 14, 2010
  17. viral-vector

    viral-vector

    Joined:
    Apr 12, 2010
    Posts:
    248
    A LINK TO THE ACTUAL PROJECT: http://dl.dropbox.com/u/6410323/WebPlayer/WebPlayer.html
    Weapon Select Link Fixed!!!. Sorry For all my Upload Inconvenience. But I am glad to hear you guys are finding these Worth While.

    !:Raymix. For my nades i use the Explosion Framework from unity that provides extra particles, and even burning. That way i only spawn one object keeping thing more resource friendly.
    The luncher just creates the nade prefab and applies a force to it in relation to how long the player holds down "Fire1". Once the Player releases "Fire1" The force is applied. In this case the nade luncher can be used for grenades, rocket lunchers etc....just by tweaking the variables

    EveryOne: Anything that is not working or is not fitting right into tour projects please feel free to drop me a line. Also Stay tuned for Packages.
     
    Last edited: Nov 14, 2010
  18. viral-vector

    viral-vector

    Joined:
    Apr 12, 2010
    Posts:
    248
    Archive with all scripts plus prefab added !! No more waiting for if you want the package a as a whole.
    Just add you 3d models and tweak the variables. Place models as children of the anim game-objects (ex. gloakanim,p90anim) .
     
  19. raymix

    raymix

    Joined:
    Aug 25, 2010
    Posts:
    192
    thanks man! You rock!
    I will play around with them for a while, see if i can come up with something useful myself.

    Also, u got explosion framework working with 3.1? If so, Integrated Unity Asset shop is outdated then

    p.s. lovely project you have there :)
     
    Last edited: Nov 14, 2010
  20. viral-vector

    viral-vector

    Joined:
    Apr 12, 2010
    Posts:
    248
    Thank You RayMix....My name is also ray as you can tell by my script naming. No i actually used the old framework. and only used the scripts. Basically i started the project on 2.6 i basically ported all of my scripts, and the detonator scripts and rebuilt the project when 3.1 was released. i did this to make sure my system really worked and can be used to easily set up a player.

    UPDATE::::: The project is near completion
    1. I have added support for multiple grenades. Now you can carry one type of grenade (switched by pressing x).
    2. in conjunction i have added support for sticky, remote, and proximity grenades, or explosive.
    3. 3 round burst added.(single,burst,auto).
    (3.5). Buck Shots for shotguns or any weapon you want buck shots for. (single auto fire modes only)
    4. Ability to switch btw selected firing modes. (press "x ", to switch between the firing modes you allowed the weapon to have)
    5. Pause menu. ( only reset, and quit are functional, did not want to design a full menu, people are not going to use lol)
    6. Mounted weapons ( RayInOut modified to support vehicles, and mounted weapons.)
    7. Gui Enhancements : Fire mode, weapon name on Gui. Player Health, and Grenade throw speed are now gui box sliders.
    8. Blood on screen is now incremental ( i will give out my blood on screen textures with the package)
    9. Other tweaks and Updates i cant remember right now lol......

    CHECK OUT THE NEW WEB PLAYER IN FIRST POST!!!
     
    Last edited: Dec 2, 2010
  21. bradjensen68

    bradjensen68

    Joined:
    Feb 2, 2009
    Posts:
    274
    Neither the download nor the webplayer worked for me. The web player loads, but I am unable to move or shoot. The download link tells me to try again in 15 minutes ad infinitum. Too bad. These look like nice scripts.
     
  22. UnleadedGames

    UnleadedGames

    Joined:
    Feb 17, 2008
    Posts:
    242
    On the webplayer you have to hit "esc" to close the main menu, then you will gain basic functions. Very cool demo boss, but the download link is not working. Can't wait to play with this though, thanks for sharing!
     
  23. BRIK

    BRIK

    Joined:
    Nov 27, 2010
    Posts:
    131
    Those are some scary cubes.
     
  24. viral-vector

    viral-vector

    Joined:
    Apr 12, 2010
    Posts:
    248
    Thank You Msken Brik.
    For anyone interested. i have basically finished, or for now satisfied with the detail level o the scripts.
    Last things to Implement before Full release

    1. Health pick up
    2. ammo pickup
    3. Gravity gun tuneups

    Once these are complete, hopefully by the end of this week. I will either work on weapon dropping and pick up, some Ai, and release the package containing nearly 20 scripts.

    Any further suggestions or ideas would be greatly appreciated before full release
     
  25. eric_c

    eric_c

    Joined:
    Sep 19, 2010
    Posts:
    44
    The whole package its quite nice actually... its just that the game in your webplayer with the random breathing sound, make me kinda think he's ... you know...
     
  26. viral-vector

    viral-vector

    Joined:
    Apr 12, 2010
    Posts:
    248
    CSHen042. lol i used the breathing as placeholder in order to demonstrate my player script witch allows for random character quotes. It can be replace with any phrase, or sound you want the character to randomly say.

    The web Player is a week old, and since then i have cleaned the sounds up, tuned up the mounted weapon script, tuned up the cross hair script, and improve the cubes patrolling function along with smoothed out movements.


    Please stay tuned for the full release with 4 times the content!!!!
    of the current version available to download. with features shown and not shown in the web player.
     
    Last edited: Dec 2, 2010
  27. KillerScript

    KillerScript

    Joined:
    Aug 20, 2010
    Posts:
    368
    I doesn't know why but...
    I can't move...
     
  28. UnleadedGames

    UnleadedGames

    Joined:
    Feb 17, 2008
    Posts:
    242
    Press ESC while not in full screen mode to make the menu close, I had the same issue.

    Can't wait l4mishotiz! You should definitely set up a paypal donation button!
     
  29. Jay_Adams

    Jay_Adams

    Joined:
    Nov 8, 2010
    Posts:
    152
    Very cool, thanks for sharing.
     
  30. KillerScript

    KillerScript

    Joined:
    Aug 20, 2010
    Posts:
    368
    Upload the thing's to english link man,
    I doesn't understand Rusian...
     
  31. Stolenbows

    Stolenbows

    Joined:
    Nov 30, 2010
    Posts:
    82
    upload the thing at MediaFire so we all know how to use it.
     
  32. viral-vector

    viral-vector

    Joined:
    Apr 12, 2010
    Posts:
    248
    Hold On Tight :] ....I The project will be complete this weekend. I will Upload it using a better file sharing site...
     
  33. Stolenbows

    Stolenbows

    Joined:
    Nov 30, 2010
    Posts:
    82
    thats much better and easier for others
     
  34. bradjensen68

    bradjensen68

    Joined:
    Feb 2, 2009
    Posts:
    274
    I got the web player to work. Nice. Can't wait to see the scripts.

    One thing I must have missed - what do you need to do to enter/exit cars?
     
  35. BRIK

    BRIK

    Joined:
    Nov 27, 2010
    Posts:
    131
    Its the E key.
     
  36. KillerScript

    KillerScript

    Joined:
    Aug 20, 2010
    Posts:
    368
    Hey man,
    Please upload the prefab's.
     
  37. viral-vector

    viral-vector

    Joined:
    Apr 12, 2010
    Posts:
    248
    I have decided to hold off on any other implementations, and release the package now...
    in the middle of exams!!!. and dont want to bug my brain down....
    BUT THE PACKAGE BETA IS COMPLETE....AND WILL BE AVAILABLE FOR DOWNLOAD HERE:::

    http://kroniked.weebly.com/fpx-zero.html

    The download will be available tonight
     
  38. KillerScript

    KillerScript

    Joined:
    Aug 20, 2010
    Posts:
    368
    Thank's a lot!
    Edit:
    Please man upload it N-O-W!
     
    Last edited: Dec 6, 2010
  39. sjm-tech

    sjm-tech

    Joined:
    Sep 23, 2010
    Posts:
    733
    i'm very curious ... thank for sharing!
     
  40. viral-vector

    viral-vector

    Joined:
    Apr 12, 2010
    Posts:
    248
    FINALLY HERE!!!
    Full package now live!!! Dowload available here: http://kroniked.weebly.com/fpx-zero.html

    I have included two packages (one with demo scene, prefabs, and dependencies)(another with just the source or scripts)
    Plus a build of what you can achieve in quickly with the package...

    Still beta. and looking for bugs, and comments !!!!
     
  41. bradjensen68

    bradjensen68

    Joined:
    Feb 2, 2009
    Posts:
    274
    Awesome! Thanks, downloading now....
     
  42. StephenL

    StephenL

    Joined:
    Oct 18, 2010
    Posts:
    218
    Very nice work! I donated. :D
     
  43. Wolf Dreamer

    Wolf Dreamer

    Joined:
    Sep 2, 2009
    Posts:
    142
    Thanks for this!

    Hard to get into the vehicle. Tried for awhile, didn't work, then later went back and got in without problems. Then when I tried to exit I ended up unable to move at all, seeing only clouds around, and the sky.
     
  44. viral-vector

    viral-vector

    Joined:
    Apr 12, 2010
    Posts:
    248
    Thank You StephenL!!!

    Yes Wolf Dreamer the package still has some bugs... There should be no problems entering as long as you stand next to the doors ( it is trigger based, and the trigger is positioned at the doors. But for exiting the vehicle, i am having problems placing the player in an appropriate position, hence the random position bug...I will be posting updates and encourage other to experiment with the code.
     
  45. Wolf Dreamer

    Wolf Dreamer

    Joined:
    Sep 2, 2009
    Posts:
    142
    I import the package to a new project in Unity 3.1 but I get errors with the input script. I can't shoot any weapon at all, other than the grenades. Is this working for anyone else?
     
  46. viral-vector

    viral-vector

    Joined:
    Apr 12, 2010
    Posts:
    248
    You must define : Sights, Run, Action, Flashlight, Reload, Crouch under your inputs for the package to work. I believe you might also have to add another tag....
    If anyone is having issues please post here. i will soon have a board on my website. for tech supports...
     
    Last edited: Dec 8, 2010
  47. bradjensen68

    bradjensen68

    Joined:
    Feb 2, 2009
    Posts:
    274
    I have an issue with the grenades.

    The referenced script on this Behaviour is missing!
    UnityEngine.Object:Instantiate(Object, Vector3, Quaternion)
    RayExplosive:Explode() (at Assets/Outside Assets/Scripts/FPX/RayExplosive.js:50)
    $:MoveNext() (at Assets/Outside Assets/Scripts/FPX/RayExplosive.js:21)
     
  48. viral-vector

    viral-vector

    Joined:
    Apr 12, 2010
    Posts:
    248
    bradjensen68 : you must create your explosion gameobject prefab , then you must assign that prefab to the Explosion var the the explosive script for your grenade
    i used the detonator framework to create mine, takes a second..
    you can also just create a quick particle explosion yourself and use as prefab but make sure to add the RayDamageGiver for area damage script to the prefab
     
  49. bradjensen68

    bradjensen68

    Joined:
    Feb 2, 2009
    Posts:
    274
    I am trying to incorporate the flamethrower from the fabricator contest

    http://forum.unity3d.com/threads/59...est-Win-Unite-Tickets!?highlight=flamethrower

    I've got it working with some tweaks, but now I am trying to get the petrol cans (I'd call them gas cans) to explode causing area damage.

    Also, it would be nice to be able to use an array for the rayinout to be able to disable multiple scripts. The flamethrower, for example, has motion scripts in two locations and has multiple scripts to control the flame.
     
    Last edited: Dec 9, 2010
  50. Jay_Adams

    Jay_Adams

    Joined:
    Nov 8, 2010
    Posts:
    152
    I have tried quite a few times, but that site never lets me DL. Always says an error occours when the wait timer runs out.