PDA

View Full Version : question about force pulling/pushing weapons?


Markaine
02-27-2003, 06:39 PM
What file/s is it in to enable this? Not just force.c right?
I've tried looking/understanding all kinds of stuff but you know what that does.....That just leads me to find something else new to play around with...I get easily distracted when it come to force.c.

AJL
02-28-2003, 08:28 AM
Originally posted by Markaine
What file/s is it in to enable this? Not just force.c right?
I've tried looking/understanding all kinds of stuff but you know what that does.....That just leads me to find something else new to play around with...I get easily distracted when it come to force.c.

w_force.c

If you search for this:

if (!OnSameTeam(self, push_list[x]) && Q_irand(1, 10) <= randfact && canPullWeapon)

You should find what you are looking for... (i think)

What you should find is:

1. You can pull weapon if target is character (bot or
player) and range to it is 256 or less

2. It is random stuff exept is your force level is three

3. You can't pull weapons from friends...

4. ....

Markaine
02-28-2003, 10:49 AM
Yes, but also weapons lying around. I want to be able to push/pull anything and everything.

also Where's the file that tells the game not to allow us to drop or loose the bryar and lightsaber? will this mess up something if its changed?

Markaine
03-01-2003, 12:00 PM
We can push\pull items right? Well how could we do the same for weapons? Am I missing something here?

AJL
03-01-2003, 12:22 PM
Originally posted by Markaine
Yes, but also weapons lying around. I want to be able to push/pull anything and everything.

also Where's the file that tells the game not to allow us to drop or loose the bryar and lightsaber? will this mess up something if its changed?

We can push\pull items right? Well how could we do the same for weapons? Am I missing something here?

I think it should be possible to make it possible to pull weapons
also when they are lying around but how... (that "may" be a bit
more difficult thing to do... or it may be very easy if you find
the code...)

And about being able to pull also...

g_combat.c --> void TossClientWeapon

There you can see:

if (weapon <= WP_BRYAR_PISTOL)
{ //can't have this
return;
}

this means that you can't pull bryar and weapons which number
is less than bryars... (Saber and Stunbaton)

But if you change this it may cause that player can be without
weapon at all (which to my knowledge is not possible...) and/
or you could mess up base weapon setup and/or, ...

I say changing this may and most likely will cause problems...
And i mean SERIOUS problems !

Exept if you are absolutely sure what you are doing...:rolleyes:

Markaine
03-01-2003, 02:49 PM
I think it looks pretty Dangerous too...

I wanted to be able to drop my lightsabre somewhere and leave it there for as long as i wanted. (All the rpg maps and stuff)

Also to finish my force lightning project.
If you get electricuted long enough, you'll drop your light saber or whatever you're holding...

All I really need now is making weapons pullable like items...

Thanx