|
Cube & Cube 2 FORUM
|
A few modding and scripting questions |
by TimMcD
on 07/09/2009 23:32, 3 messages, last message: 07/29/2009 15:05, 1259 views, last view: 04/20/2024 09:20 |
|
First off, are there any 'events' that can be hooked onto with cubescript? Like, I'd like my zoom script to unzoom whenever I die.
Also, what language does one use to mod Sauerbraten? Are they just required to hunker down and learn C/++ or w/e, or is there a scripting language for it too (Prolly not cubescript, but Lua maybe?). On taht note, how hard would it be to implement a 'crouch'? What would be needed for that? Would I need to make new models/anims for the current player models?
|
|
Board Index
|
|
#1: .. |
by SheeEttin
on 07/09/2009 23:52
|
|
1. Not that I'm aware of. I personally use a hold-to-zoom binding:
bind "MOUSE2" zooma
"zooma" = [
fov 30
sensitivity 4
onrelease [
fov 100
sensitivity 7
]
]
2. Cube 2 is written in C++. If you want to mod the source, you'll have to know what you're doing. Cubescript is the only scripting interface in the mainline engine, but there are mods (e.g. the Intensity engine http://cubeengine.com/forum.php4?action=display_thread&thread_id=2139 ) to extend the scripting interface.
3. In terms of code, not especially. However, no maps are built to support crouching. You'd be doing something nobody intended.
Crouching and scripting have been discussed before. Please try searching and/or posting in existing topics before starting a new one.
reply to this message
|
|
#2: .. |
by ps2death
on 07/29/2009 04:19
|
|
Were is the script in sauerbraten that determines the color of your name when you are master or admin
reply to this message
|
|
#3: Re: .. |
by (noerrorsfound)
on 07/29/2009 15:05, refers to #2
|
|
It's in the source code.
reply to this message
|
|
|
Board Index
|
|
Unvalidated accounts can only reply to the 'Permanent Threads' section!
|
|
|
|
|