Forum

> > Stranded II > General > Realistic hunting script?
Forums overviewStranded II overviewGeneral overviewLog in to reply

English Realistic hunting script?

12 replies
To the start Previous 1 Next To the start

old Realistic hunting script?

Lion_Hearted
User Off Offline

Quote
Hello,

I have been for the last several weeks, devising a more realistic hunting system for stranded 2. In games such as deer hunter, and in real life its rare that a newbie hit the animal every time. When you land on the island, you have 0 skill points in the hunting department... and yet if you have experience in playing the game you can hit a lion with two direct hits with a spear and beat him.

In real life that would just not be so...


I want to make a script that incorporates the following into the item script.

Damage is based on a 4 fold area...

Miss, graze, wound, critical hit.

Which of these 4 areas would depend on your, hunting skill, and your distance from the target...

A miss would be 0 damage, a graze would be a low amount of damage, a wound would be a decent amount of damage and bleeding for a short amount of time, critical hit would be a drop dead hit.

The farther away your target is, and the lower your skill level, the more likely it is to miss the animal, or graze it... the higher your skill level, and the closer the animal is, the more likely to wound it, or even critically hit it.

A critical hit can easily be explained by a hit to the heart, lungs, or even the neck's air pipe or main blood vein. Obviously you're not going to get too many of those until your skill level is high, like 400 to 500...

Also, instead of finding your arrow, or spear where you hit the animal, there would be a certain percentage of a chance for the spear to get stuck in the animal, especially if it was a critical hit, unlikely if it was a graze. The arrow would get stuck in the animal at a wound or a critical hit.


This script is possible with the player distance commands and of course the skill commands. Certain random factors would make it possible as well. Cause a newbie can surprise a veteran every once in a while and so can a veteran lose some times.


My question is, is anyone interested in such a script?

old Re: Realistic hunting script?

Lion_Hearted
User Off Offline

Quote
Is there any extra ideas though, to make it more realistic.

I have no RL hunting experience, so I'm rather vague in that area. Those of you who do hunt could help me out here...

old Re: Realistic hunting script?

Xaeveax
User Off Offline

Quote
Well, from what you have already planned, if you add anything else, it will be crazy complicated to script. You COULD potentially make it so that you have to take the bullets out of the animal and such before it gets lead poisoning and becomes unsafe to eat, or maybe make it so that once it is dead, instead of disappearing overnight, it leaves a pile of bones, but that's not really "hunting" stuff. Hmmm...

Maybe a good idea would be to make it possible to zoom in (like with a sniper scope) so that you could hit things that are too far away to see. I tried making a scope system by modifying the script for the telescope in the Ext. Mod, but it didn't work. If anybody could get it so that you can still move and aim while zoomed, it would be truly amazing, not to mention it would add a level of realism to he game.

old Re: Realistic hunting script?

Lion_Hearted
User Off Offline

Quote
Lead bullets creating lead poisoning is realistic...

But rarely do I ever use guns in stranded 2...

An arblaster is so much easier to get the ammo for...

As for a script that would allow you to aim, that would be pretty easy... I think...

Just make a model for the player that would include that specific image... when you activated the zoom the event would trigger a model change... and you would have a piece of your model image in-front of the forward view camera...

The model would have to be introverted in order for you to see it, since your looking from the inside of the model.


But those graphics are a whole diffrent deal... its possible that I do that deal some time in the future... but... I'm interested in the script, not in the graphics right now.

Leaving a pile of bones would also be a graphical script.


Lead poisoning though is definatly something to check out...

old Re: Realistic hunting script?

UnIdEnTiFiEd
User Off Offline

Quote
I like your enthusiasm towards this hunting script and I thought you may need some more ideas and i thought, food poisoning.

For example, you leave some food coated with poison on the ground, an animal comes up to it, eats it and gets poisened, dies, and you take it's stuff. But then you will have to boil the meat or something to get the poison out to eat it, or use its meat to poison more animals.

old Re: Realistic hunting script?

Xaeveax
User Off Offline

Quote
Quote
For example, you leave some food coated with poison on the ground, an animal comes up to it, eats it and gets poisened, dies, and you take it's stuff. But then you will have to boil the meat or something to get the poison out to eat it, or use its meat to poison more animals.


That's quite a cool idea!

old Re: Realistic hunting script?

Lion_Hearted
User Off Offline

Quote
Very good idea, and very possible for some future mod...


I just got a new computer, and I haven't had the time to transfer all my stranded 2 tools and scripts so the hunting script is sorta on hold...

Right now, I got the script to insert an arrow, or bullet, or basically anything I want INTO the animal. So if you shoot an animal with an arrow, get a wound status, the arrow will lodge itself inside the animal and you'll be able to get it when you get the meat and etc later...


Edit:>

Could someone give me an example on how this command?

playerdistance "Class", ID
edited 1×, last 06.04.11 02:41:19 am

old Re: Realistic hunting script?

Xaeveax
User Off Offline

Quote
1
2
3
4
if (playerdistance("self")<200) {
	play "randomsong.wav";
	msg "This is a testing script!";
  }

That's one way it could be used.

old Re: Realistic hunting script?

Lion_Hearted
User Off Offline

Quote
Good,

How about something like this...?
1
2
3
4
5
6
7
on:impact {
		$tmp=impact_class();
		$tmp2=impact_id();		
		$tmp3=playerdistance $tmp,$tmp2;
		if (compare_material($tmp,$tmp2,"flesh")==1){
			if (skillvalue("hunt")<=50){
				if ($tmp3<=50){
The code above doesn't work by the way... its just an example of what I want...


I'm currently trying to find a way to use that command so it grabs $tmp and $tmp2's values, checks the distance, and then sees if its above or below 50, 100, 150, 200. (still gotta tweak with the distance settings, but thats going to require gameplay...



Edit:

So far, I have this script done, and from my beta testing it appears to be working excellent...

Spoiler >


Once I figure out how to use the player distance command I'll be implementing that in there... the closer you are to the animal, the easier it will be to hit it.

I could use some help in that general area...
edited 1×, last 07.04.11 09:57:58 pm

old Re: Realistic hunting script?

Lion_Hearted
User Off Offline

Quote
The hunting script is done, all I have to do now is adjust it to each projectile in stranded 2, and release it for you guys to beta test... When your playing with a code that big, there's bound to be bugs...


Give thanks to DC for helping me with pieces of the code...
To the start Previous 1 Next To the start
Log in to replyGeneral overviewStranded II overviewForums overview