home home

downloads files

forum forum

docs docs

wiki wiki

faq faq

Cube & Cube 2 FORUM


General Thread

by Aardappel on 01/05/2002 01:55, 15527 messages, last message: 03/01/2024 13:02, 12533783 views, last view: 11/02/2024 19:28

for questions, announcements etc.

Go to first 20 messagesGo to previous 20 messages    Board Index    Go to next 20 messagesGo to last 20 messages

#10493: Grenades

by tman_elite on 05/11/2008 03:08

In my mod, I'm trying to make it so that a key is used to throw a grenade (keeping the grenade launcher as a weapon too.) The only way I know how to do this now is by:

grenade = [
weapon 5
attack
speep 0010 [weapon]
]
bind G [grenade]

There are a few big problems with this. First, it won't switch back to the weapon you were using. Second, if you don't have any grenades, it will fire a rocket or rifle round or something.

So, is there any way to store the current weapon in a variable, switch, then change back to the weapon before. Also, what changes to the code would I have to make to be able to check the number of remaining grenades in cubescript (or at least check if there are grenades at all)?

Any help would be appreciated. Thanks.

reply to this message

#10494: Re: Grenades

by demosthenes_ on 05/11/2008 03:32, refers to #10493

I've done it before, but it only sort of works. Most of the time, it'll switch back to the weapon you had before you used the GL, but not always. And you can't be sure that it will even launch a grenade.

Here it is:

reply to this message

#10495: Re: Grenades

by yetanotherdemosthenescomputer on 05/11/2008 03:32, refers to #10493

alias rewep 0
bind 1 [weapon 6 2 4; alias rewep1 6; alias rewep2 2; alias rewep3 4]
bind 2 [weapon 1 2 6; alias rewep1 1; alias rewep2 2; alias rewep3 6]
bind 3 [weapon 2 1 4; alias rewep1 2; alias rewep2 1; alias rewep3 4]
bind 4 [weapon 5 3 6; alias rewep1 5; alias rewep2 3; alias rewep3 6]
bind 5 [weapon 3 5 6; alias rewep1 3; alias rewep2 5; alias rewep3 6]
bind 6 [weapon 4 6 2; alias rewep1 4; alias rewep2 6; alias rewep3 2]
bind R [weapon 5; attack; onrelease [weapon $rewep1 $rewep2 $rewep3]]

reply to this message

#10496: Re: Grenades

by tman_elite on 05/11/2008 03:48, refers to #10495

This still has the problem of firing a different weapon if there are no grenades. Also, it doesn't seem to work if you don't have more than 3 weapons (pistol, gl, and fist).

reply to this message

#10497: sauer (and other cube 1/2 games) won\'t load in 64-bit lin

by tuxxin on 05/11/2008 04:36

For some reason cube games simply won\'t load. I\'ve installed the 32-bit versions of the libraries needed, but when I run the game I get this:

[john@archlight bin_unix]$ ./linux_client
init: sdl
init: enet
init: video: mode
init: video: misc
init: gl
Renderer: GeForce 7600 GT/AGP/SSE2 (NVIDIA Corporation)
Driver: 2.1.2 NVIDIA 169.12
Rendering using the OpenGL 1.5 GLSL shader path.
could not load texture data/notexture.png
could not find core textures
[john@archlight bin_unix]$

Other 32-bit compiled games run fine. Any ideas?

reply to this message

#10498: Re: Grenades

by tman_elite on 05/11/2008 06:22, refers to #10497

I'm assuming the getweapon command will be in the next release then. If so, I'll just try to redo my source changes on the source for the next release. There aren't that many changes, and I'll get CTF into my mod too.

reply to this message

#10499: Using Q3 models in Sauerbraten

by crich70 on 05/11/2008 22:41

How do you convert them so that you can use Q3 models in the Sauerbraten engine? I've seen postings where someone said that there are instructions on doing it but I can't quite find the right set of instructions. Do you need any special program to do such a converting job or is it all a text file alteration?

reply to this message

#10500: changing movement speeed

by skenagle on 05/11/2008 23:03

Does anyone know how to slow down movement speed?

I know the game a physics dynamic that movement speed is adjusted based on duration of movement, jumping and strafing, but where can i set the original value within these variables?

I assume its the physics file, but how do i do that?

(i already know about "gamespeed =x" i am trying to slow movement speed while game speed stays the same.)

Thank you
Skenagle

reply to this message

#10501: can i turn off strafe?

by skenagle on 05/11/2008 23:06

Sorry for posting 2 posts at once, but i have been looking everywhere and cannot find it.

How do I turn off strafe for the "a" and "d" keys and set those keys to turn instead?

(i would like to strafe only when im holding the left mouse button down while i am moving)


Thank you
Skenagle

reply to this message

#10502: Fullbright

by tman_elite on 05/12/2008 03:12

Fullbright only works in edit mode (at least for me...) My computer is a piece of crap, so I'm wondering if fullbright could me made an option during normal fighting (it helps framerate a lot on big maps.) I realize this could be viewed as cheating (it's dark for a reason) but if it's available to everyone there's not really a problem.

reply to this message

#10503: Re: can i turn off strafe?

by tentus_ on 05/12/2008 04:50, refers to #10501

skenagle:

Turning with a key is currently only supported in the old joystick mod (which is rather out of date, if I'm remembering correctly). This is to discourage people from trying to use a controller with Sauer, and then complaining when it hurts their score (which it inevitably will).

reply to this message

#10504: ..

by ACCESSGRANTED on 05/12/2008 05:09

lol
ok I just need to same something here
WAT THE PUCK Are YOU ON

This is to discourage people from trying to use a controller with Sauer, and then complaining when it hurts their score (which it inevitably will). WHAT!!!! <--------
If I wan't 2 use a controller you have no right to say I CAN'T and if I wan't to complain about my scores IT kind of sounds like your trying to tell some one how they should play if I am wrong there please correct me but that reason is UTTER BULL FU^ING shi^ .

/me clams down

reply to this message

#10505: Re: ..

by tentus_ on 05/12/2008 05:24, refers to #10504

Before I say anything else, let me point out that this isn't my decision, it's Aard and eihrul's. But here's the reasoning:

You're right, we have no right to tell you not to use a controller. But we do have the right to say "we're not going to code it, do it yourself." And that is exactly what has happened in the past.

It my personal opinion (along with many, many thousands of other gamers across the globe) that no joystick has a chance against the precision and speed of a mouse. This is why almost every console FPS game has at least some form of auto-aiming built into it. I would go so far to say that the evidence already in existence could be used as factual proof that mouse > joystick, at least for first person shooters. I am convinced that a proper study would confirm this (though who in their right mind would bother doing such a study?)

We are telling you how to play, sort of. We're telling you how to play /better/, because WASD+mouse is simply better than two joysticks and a couple of shoulder buttons. Sorry if that's news to you.


By the way, congratulations on making a fool of yourself. There are countless methods of informing us of your differing opinion, almost all of which are more effective than "yelling" and using pseudo-profanity and terrible grammar.

reply to this message

#10506: ..

by ACCESSGRANTED on 05/12/2008 05:30

We are telling you how to play, sort of. We're telling you how to play /better/, because WASD+mouse is simply better than two joysticks and a couple of shoulder buttons. Sorry if that's news to you.

thats still your opinion
and it means SHI^
personly i like KB and mouse over a joypad and I don't care if its added or not but if some one else wants to use one far be it from me to say the KB IS BETTER USE IT if I have more fun sitting back in my lazy boy with a dpad a 2 joy sticks then sitting at my desk who are you to say thats wrong or tell me its better

reply to this message

#10507: Re: can i turn off strafe?

by nefnoerrorsfound on 05/12/2008 15:59, refers to #10503

I don't see how that would discourage people, unless they're using a Nintendo 64 controller. Console FPSs use the left analog for movement (in place of keyboard buttons such as WASD, or the ESDF I use) and the right for looking (in place of mouse) by default. They have no reason for turning.

reply to this message

#10508: Re: can i turn off strafe?

by tentus_ on 05/12/2008 17:24, refers to #10507

Right joystick = keypad. If you're ever trying to bind a USB controller to game actions, it's essentially just a matter of associating the buttons and sticks with existing keys, like A and D.

Please consider the following quote ( http://cubeengine.com/forum.php4?action=display_thread&thread_id=804#26421 )
"the use of joysticks with sauerbraten is so pointless in the general case, that I see no reason for it to be in the main code. We generally want to keep to code small & simple, no room for code thats not used. In addition to that, we want to promote those few console-only people that are stubborn about using a mouse to try it :)"

Here's the joystick mod, btw: http://www.quadropolis.us/node/571

reply to this message

#10509: Help with Monsters and Guns

by trfcrugby on 05/12/2008 20:27

I have two problems, and I assume they are related.

I want to change the monster speed, damage, hp, etc. I found a file called monster.h that has all the stats, but any changes I make have zero effect in the game. The same goes for the weapons. I make changes to the weapons.h file, and there are no changes in-game.

I can't find this anywhere, and I have searched and searched.

Thanks...

reply to this message

#10510: Re: Help with Monsters and Guns

by MovingTarget on 05/12/2008 20:37, refers to #10509

*sigh*
The files are written in a language called C++. Ever heard of it?
For the changes to take effect, you must recompile the source code.
For instructions, look to the wiki:
http://cube.wikispaces.com/Building+and+Compiling

reply to this message

#10511: Re: can i turn off strafe?

by tman_elite on 05/12/2008 21:18, refers to #10507

Sauer is simply too fast-paced for joysticks. If you think about it, the reason for moving so slow in games like Halo is probably so you can keep up with the joystick. If you try playing a fast-paced game like Sauer with a console controller you'll soon wish you had aim-assist or enemies that move a lot slower...

reply to this message

#10512: Re: can i turn off strafe?

by skenagle on 05/12/2008 21:22, refers to #10503

ok thank you.

Im not really trying to increase my game scores by turning off strafe.. as i know strafing is the only way to frag.
(dont worry, i am not going to say that my scores are low when i turn off strafing)

:)

but i am playing around with the engine a bit and seeing how to change things and move ideas around in my head as i look at this product and really appreciate its dimensions.

So i can install that old joystick mod,then map the keys to turn?

is that what you are saying?

thank you
skenagle

reply to this message

Go to first 20 messagesGo to previous 20 messages    Board Index    Go to next 20 messagesGo to last 20 messages


Post a Message

Username

Email

Subject

Body

8 times 4 is?


content by Aardappel & eihrul © 2001-2024
website by SleepwalkR © 2001-2024
58367313 visitors requested 76319181 pages
page created in 0.158 seconds using 10 queries
hosted by Boost Digital