player spawning with mass gravity
player spawning with mass gravity
ive been trying to do this for ages but how would i make it so the player spawns with sv_gravity 90000
?
?
-
- Posts: 20
- Joined: Sat Jul 10, 2010 11:20 pm
- Location: DukeLand
- Contact:
Re: player spawning with mass gravity
You barely started Quake modding. How have you been trying to do anything Quake related for "ages"?
Anyway have you tried the config file or stuffcmd("sv_gravity 90000");
Anyway have you tried the config file or stuffcmd("sv_gravity 90000");
Re: player spawning with mass gravity
In Worldcraft / Hammer just place a trigger command brush where your players start and insert your command there..
Should do the trick.
Should do the trick.
Re: player spawning with mass gravity
NO NO NO!!
The correct way:
1. Defs.qc
Add this at the bottom since it's a new 1.07 field, and isn't present in 1.01-1.06 QC sources:
2. Client.qc
PutClientInServer
insert
in there.
3. compile
4. run
5. your fat
The correct way:
1. Defs.qc
Add this at the bottom since it's a new 1.07 field, and isn't present in 1.01-1.06 QC sources:
Code: Select all
.float gravity; // GRABITTY
PutClientInServer
insert
Code: Select all
self.gravity = 112.5;
3. compile
4. run
5. your fat
i should not be here
Re: player spawning with mass gravity
to me ages is like 1 week lol at the your fat joke also what would i have to type for player speed?
-
- Posts: 112
- Joined: Sat Apr 09, 2011 3:19 am
Re: player spawning with mass gravity
thommo im not saying this again stop hounding ppl for your code n actually search around in threads and stuffthommoboy wrote:to me ages is like 1 week lol at the your fat joke also what would i have to type for player speed?
Re: player spawning with mass gravity
Kids telling kids to stop......sniperz227 wrote:thommo im not saying this again stop hounding ppl for your code n actually search around in threads and stuff
anyway you can't directly change player speed as easily, Quakeworld allowed it I believe though but that's different
i should not be here
-
- Posts: 112
- Joined: Sat Apr 09, 2011 3:19 am
Re: player spawning with mass gravity
im not stoping him im trying to make him more self dependantleileilol wrote:Kids telling kids to stop......sniperz227 wrote:thommo im not saying this again stop hounding ppl for your code n actually search around in threads and stuff
anyway you can't directly change player speed as easily, Quakeworld allowed it I believe though but that's different
Re: player spawning with mass gravity
i am becoming more self dependant now thanks
Re: player spawning with mass gravity
I'm sure if you actually bothered to properly look at the QuakeC code yourself then you would probably have figured it out "ages" ago :roll:
-
- Posts: 336
- Joined: Thu Nov 12, 2009 4:37 am
Re: player spawning with mass gravity
We all had to have started somewhere sniperz, go easy on him. Its easy to say "look in the exsisting quake code" because to most of us we can actually see where and how that piece of code. Thats like telling someone to learn a foreign language by reading a foreign language. Not that I'm taking his side, its just you gotta give him the right pointers so he can learn.
Re: player spawning with mass gravity
Actually I was thinking about this myself the other day, and dont recall anyone asking about it. What you are wanting is a 'weight' to be added to an entity, depending on the size of the model. I dont think the quake legacy engine has it by default, dunno about darkplaces...but I suppose you could assign a specific for weight:
.float weight;
Then something that calculates a base weight when it looks at the absolute mins + maxs of the model's setsize command , then depending on the model itself's density, you could add in another factor to decrease or increase it, and you would have a ranbge of values to work with. The next thing would be altering the entities velocity with a think and or touch, somethitng like:
// Self , is for example the player
self.velocity = self.velocity / self.weight;
.float weight;
Then something that calculates a base weight when it looks at the absolute mins + maxs of the model's setsize command , then depending on the model itself's density, you could add in another factor to decrease or increase it, and you would have a ranbge of values to work with. The next thing would be altering the entities velocity with a think and or touch, somethitng like:
// Self , is for example the player
self.velocity = self.velocity / self.weight;
Re: player spawning with mass gravity
weight won't change how fast you fall...
just read what leileilol said.
just read what leileilol said.
-
- Posts: 112
- Joined: Sat Apr 09, 2011 3:19 am
Re: player spawning with mass gravity
i have before ghost i told him what topcis to go to etc.. but he still ignores what im saying like watching mexicougers video's etc.. thats why im going hard because he ignores what were all sayingGhost_Fang wrote:We all had to have started somewhere sniperz, go easy on him. Its easy to say "look in the exsisting quake code" because to most of us we can actually see where and how that piece of code. Thats like telling someone to learn a foreign language by reading a foreign language. Not that I'm taking his side, its just you gotta give him the right pointers so he can learn.
Re: player spawning with mass gravity
He might be able to use Gyro to do something like that.weight won't change how fast you fall...