Jump to content

Home

Damage and Gravity


RoxStar

Recommended Posts

Posted

What file would I need access to so that I could create something that would make the gravity for an indivdual player decresase as their damage incresases.

Posted

look in pmove.c i think. there should be things with self->gravity stuff so i'd write something like:

 

self->gravity /= 100 - self->health;

 

those aren't the exact commands but something along those lines.

Posted

Sorry, I'm a noob coder, anyway, heres my code

 

//SSBMTC EDIT

if (typedef struct self->health < 81) 
	typedef struct self->gravity = 700;

 

and heres my error message

 

--------------------Configuration: bg_pmove - Win32 Debug--------------------
Compiling...
bg_pmove.c
C:\projects\JEDI_Academy_SDK\codemp\game\bg_pmove.c(11101) : error C2059: syntax error : 'type'
Error executing cl.exe.

bg_pmove.obj - 1 error(s), 0 warning(s)

 

whats wrong?

Posted
Originally posted by Dave Grohl

It says that it needs a struct/union.

 

self is supposed to be a gentity_t pointer. If you haven't set up self, it's not going to work.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...