Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Damage and Gravity

Page: 1 of 1
 RoxStar
10-24-2004, 3:10 PM
#1
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.
 Tinny
10-25-2004, 6:10 AM
#2
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.
 RoxStar
10-29-2004, 6:04 PM
#3
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?
 Skyline
10-30-2004, 7:16 AM
#4
Try this:


//SSBMTC EDIT

if (typedef struct self->health < 81)
{
typedef struct self->gravity = 700;
}
 razorace
10-30-2004, 10:51 AM
#5
remove the "typedef struct".

You only use that when defining the struct.
 RoxStar
10-30-2004, 12:10 PM
#6
It says that it needs a struct/union.
 stubert
10-30-2004, 12:11 PM
#7
your syntax is still 100% wrong
 razorace
10-30-2004, 12:31 PM
#8
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.
 RoxStar
10-30-2004, 7:02 PM
#9
Ohhh. So i need to find the file where self-> is named and then I just copy that line?
 razorace
10-30-2004, 7:50 PM
#10
uh, no. In what function are you trying to add this?
Page: 1 of 1