How do you take more hits from swords?

A secret forum for people who preorder Overgrowth!
Post Reply
Lemonspy
Posts: 3
Joined: Wed Jul 27, 2011 7:51 am

How do you take more hits from swords?

Post by Lemonspy » Sat Sep 17, 2011 10:00 am

I know that you can just press x to jump up back alive again but i have seen a few videos were they have edited the config so they can take more hits from weapons before dieing. So does anyone know what bit to edit i think they said that they changed it in the aschar.as file but i dont know where in the file they changed it if anyone could tell me it would be much appreciated :D .

User avatar
Saedz
Posts: 298
Joined: Mon Mar 07, 2011 11:52 am
Location: Butts
Contact:

Re: How do you take more hits from swords?

Post by Saedz » Sat Sep 17, 2011 3:37 pm

Lemonspy wrote:I know that you can just press x to jump up back alive again but i have seen a few videos were they have edited the config so they can take more hits from weapons before dieing. So does anyone know what bit to edit i think they said that they changed it in the aschar.as file but i dont know where in the file they changed it if anyone could tell me it would be much appreciated :D .
Edit the aschar.as file and edit this line

void Recover() {
knocked_out = _awake;
blood_health = 1.0f; <------ (make it higher, like 1000.0 or something)
block_health = 1.0f;
temp_health = 1.0f;

then you are able to take more sword attacks, but you are still the same to normal hand to hand attacks.

User avatar
adwuga
Posts: 2176
Joined: Tue Aug 18, 2009 12:09 pm
Location: America... Fuck yeah.

Re: How do you take more hits from swords?

Post by adwuga » Sun Sep 18, 2011 3:03 am

what about making yourself invincible. Holding x gives wierd results. should I just change all of those similar values nearby to 9999999999999999(hehe)?

User avatar
Krabman318
Posts: 225
Joined: Wed Nov 03, 2010 5:34 am
Location: Planet Decapod 10

Re: How do you take more hits from swords?

Post by Krabman318 » Sun Sep 18, 2011 5:04 am

To make everyone invicible:

Code: Select all

void Update(bool _controlled, int _num_frames) {
	blood_health = 1.0f;
	block_health = 1.0f;
	temp_health = 1.0f;
	permanent_health = 1.0f;
Or only the player:

Code: Select all

void Update(bool _controlled, int _num_frames) {
	if(controlled){
        blood_health = 1.0f;
	block_health = 1.0f;
	temp_health = 1.0f;
	permanent_health = 1.0f;
        }
Or only NPCs:

Code: Select all

void Update(bool _controlled, int _num_frames) {
	if(!controlled){
   blood_health = 1.0f;
	block_health = 1.0f;
	temp_health = 1.0f;
	permanent_health = 1.0f;
        }

User avatar
adwuga
Posts: 2176
Joined: Tue Aug 18, 2009 12:09 pm
Location: America... Fuck yeah.

Re: How do you take more hits from swords?

Post by adwuga » Sun Sep 18, 2011 7:32 pm

Thanks, gonna go kill as many rabbits as my computer can handle :twisted:

Overgrowth is going to be so cool when its optimized!

Raziul
Posts: 5
Joined: Tue Aug 30, 2011 1:35 am

Re: How do you take more hits from swords?

Post by Raziul » Wed Sep 21, 2011 3:24 am

I get crashes when trying to use the altered scripts in the aschar.as


Still running a146, is that why?

User avatar
Krabman318
Posts: 225
Joined: Wed Nov 03, 2010 5:34 am
Location: Planet Decapod 10

Re: How do you take more hits from swords?

Post by Krabman318 » Thu Sep 22, 2011 9:59 am

What does the error message look like?

a bit longer cat
Posts: 2
Joined: Fri Sep 23, 2011 12:12 pm

Re: How do you take more hits from swords?

Post by a bit longer cat » Sat Sep 24, 2011 6:50 am

Where can i find this aschar.as file?

User avatar
Endoperez
Posts: 5668
Joined: Sun Jan 11, 2009 7:41 am
Location: cold and dark and lovely Finland

Re: How do you take more hits from swords?

Post by Endoperez » Sat Sep 24, 2011 8:14 am

a bit longer cat wrote:Where can i find this aschar.as file?
Starting from your main Overgrowth installation folder ('Overgrowth'), go yo Overgrowth/Data/Scripts .

All of the assets are in subfolders under Overgrowth/Data, so you can go through the models (Data/Meshes, OBJ files), textures (Data/Textures, mostly DDS files), all the scripts, lists of what animation each character uses, animations (although they're in a custom, non-readable format, so you can't do much with those) and so on.

a bit longer cat
Posts: 2
Joined: Fri Sep 23, 2011 12:12 pm

Re: How do you take more hits from swords?

Post by a bit longer cat » Sat Sep 24, 2011 8:20 am

Thank you.

User avatar
Nervesplitter
Posts: 30
Joined: Fri Sep 23, 2011 6:55 pm

Re: How do you take more hits from swords?

Post by Nervesplitter » Sat Sep 24, 2011 6:31 pm

How can I have more unarmed health then? I like slower fist fights and right now my player is puny and gets killed in 3 minor hits.

Post Reply