Shark Cannon 1.0
4,102
50
4,102
50
Have you ever wanted to summon a shark to devour the pesky pedestrians all around you? Well now you can! Well, not really, but you can throw dead sharks at them with this mod!
Press 'H' key to launch sharks.
This is a mod that allows you to launch Hammerhead and Tiger sharks at high speeds in front of you.
While this mod is by no means revolutionary, it is commented heavily and aimed at beginners to the .NET GTAV scripting world. Use this script and following scripts I release as a starting point for your own scripts (just remember credit where credit is due).
Any tips would be extremely welcome as I too am pretty much a beginner to this and want to spread only the best techniques to my fellow learners.
###################################################
Must install:
Crosire's .NET Scripthook
https://www.gta5-mods.com/tools/scripthookv-net
Alexander Blade's Script hook V
https://www.gta5-mods.com/tools/script-hook-v
as well as copying SharkCannon.cs to your game install directory to install it.
###################################################
Credits:
I used Crosire's vehicle indicators sample script as a starting point.
Press 'H' key to launch sharks.
This is a mod that allows you to launch Hammerhead and Tiger sharks at high speeds in front of you.
While this mod is by no means revolutionary, it is commented heavily and aimed at beginners to the .NET GTAV scripting world. Use this script and following scripts I release as a starting point for your own scripts (just remember credit where credit is due).
Any tips would be extremely welcome as I too am pretty much a beginner to this and want to spread only the best techniques to my fellow learners.
###################################################
Must install:
Crosire's .NET Scripthook
https://www.gta5-mods.com/tools/scripthookv-net
Alexander Blade's Script hook V
https://www.gta5-mods.com/tools/script-hook-v
as well as copying SharkCannon.cs to your game install directory to install it.
###################################################
Credits:
I used Crosire's vehicle indicators sample script as a starting point.
First Uploaded: May 25, 2015
Last Updated: May 26, 2015
Last Downloaded: 16 hours ago
19 Comments
Have you ever wanted to summon a shark to devour the pesky pedestrians all around you? Well now you can! Well, not really, but you can throw dead sharks at them with this mod!
Press 'H' key to launch sharks.
This is a mod that allows you to launch Hammerhead and Tiger sharks at high speeds in front of you.
While this mod is by no means revolutionary, it is commented heavily and aimed at beginners to the .NET GTAV scripting world. Use this script and following scripts I release as a starting point for your own scripts (just remember credit where credit is due).
Any tips would be extremely welcome as I too am pretty much a beginner to this and want to spread only the best techniques to my fellow learners.
###################################################
Must install:
Crosire's .NET Scripthook
https://www.gta5-mods.com/tools/scripthookv-net
Alexander Blade's Script hook V
https://www.gta5-mods.com/tools/script-hook-v
as well as copying SharkCannon.cs to your game install directory to install it.
###################################################
Credits:
I used Crosire's vehicle indicators sample script as a starting point.
Press 'H' key to launch sharks.
This is a mod that allows you to launch Hammerhead and Tiger sharks at high speeds in front of you.
While this mod is by no means revolutionary, it is commented heavily and aimed at beginners to the .NET GTAV scripting world. Use this script and following scripts I release as a starting point for your own scripts (just remember credit where credit is due).
Any tips would be extremely welcome as I too am pretty much a beginner to this and want to spread only the best techniques to my fellow learners.
###################################################
Must install:
Crosire's .NET Scripthook
https://www.gta5-mods.com/tools/scripthookv-net
Alexander Blade's Script hook V
https://www.gta5-mods.com/tools/script-hook-v
as well as copying SharkCannon.cs to your game install directory to install it.
###################################################
Credits:
I used Crosire's vehicle indicators sample script as a starting point.
First Uploaded: May 25, 2015
Last Updated: May 26, 2015
Last Downloaded: 16 hours ago
will they eat them in the air? and flap about on land or do they just die?
LOL that's awesome. Video?
Got to be kidding me -_-
Nah so far the only thing it does is throw dead sharks at anything you're facing at. Not anything new but I thought it was funny so I did it. but I would really love to make them attack on land, any ideas for how to make them alive and mobile on land?
Oh also, sometimes the dead sharks get stuck in the air if you launch too many which I will see if setting them as no longer needed will help but I doubt it.
For as well commented as the actual script is, there no readme file, so beginners probably won't know how to install this
Added install directions.
How you turn it on?
i will be doing a video on this later today. i will post it here when it's done
Who needs shit like this?
Why? just why
this is flippin awesome.
Very random and kind of pointless, but also very awesome.
Thank you!! I am learning to make scripts for GTA V...this is very useful.
If you wanted to shot the shark or whatever it is, how would you do that? Im pretty sure its this line " deadbody.ApplyForce(playerped.ForwardVector * 500); "
Is there like a list of methods for playerped?
@testedmodz: press H key repeatedly.
@Gamersrevolt: I would appreciate the shit out of that :D
@Phil / Highneversober: Its for fun and for beginners to learn how to write C# mods for gta5 by example, and also for me to learn and showcase my journey. How should i be accomplishing this goal instead in your mind?
@DaGengster: This guy gets it! have fun man, your comment makes me happy. :D
@Jay VP: I am very glad that this was useful to you.Watch out for future releases!
@DaGengster(2): Yes that is the line that actually applies the force (in the form of Vector3) to the model you have already created in the world. Also, go here (http://gtaforums.com/topic/401577-iv-net-writing-net-scripts-in-c/) and read it or skip down to where it says, "We need to add using statements and references for the .netscripthook. In the solution explorer, right click References and choose add reference. On the references window. choose Browse, and browse to where you put the .netscripthook. In the folder scripts\For developers\bin\ should be the file ScriptHookDotNet.dll. Choose this file to add the reference." This will show you the methods of Ped (playerped is of type Ped.), Player, Entity, Vehicle, etc. I found this particularly useful even though it has to be done with MSVS. Let me know if I need to clarify.
Native functions:
http://www.dev-c.com/nativedb/
Thanks for mod man, Love it https://www.youtube.com/watch?v=xhnBfkEgAaI
Hilarious, thanks for the great mod!
can you mkae LIVE sharks if they are spawned in water?
so you're not gonna tell me in the description on were to put the CS file? i thin you may have said something about putting it in the dirrectory but it didnt activate