Scripts / Characters Sitting Down

Author
Message
lordjulian
10
Years of Service
User Offline
Joined: 10th Jan 2014
Location:
Posted: 17th Sep 2015 22:01
I would like to put myself in a cutscene for my game. Trouble is, I'm wheelchair-bound so it would look a bit silly if I was standing. It there any way to get a character to sit?
Julian
PM
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 17th Sep 2015 22:24
indeed you can

sit.lua


all you really need is this
3744 frame
so
SetAnimationFrame(e,3744)
is fine if you dont want the full animations

life\'s one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
lordjulian
10
Years of Service
User Offline
Joined: 10th Jan 2014
Location:
Posted: 18th Sep 2015 01:00
Thanks, very much, SmallG
Julian
PM
lordjulian
10
Years of Service
User Offline
Joined: 10th Jan 2014
Location:
Posted: 18th Sep 2015 01:02
LOL. looks like some strange exercise regime in your vid!
Julian
PM
Bored of the Rings
GameGuru Master
19
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 18th Sep 2015 06:47
ha yeah is like er "Shall we? errr no let's sit down again..."
very good script.
Professional Programmer: Languages- SAS, C++, SQL, PL-SQL, JavaScript, HTML, Darkbasic Pro, Purebasic, others
Hardware: Dell Precision 490; AMD Radeon HD 7570; LG TFT monitor (widescreen).
Interests: Drumming, Saxophone, Art, Theatre, Music.
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 18th Sep 2015 08:03 Edited at: 18th Sep 2015 15:45
And if you want to AI sitting up and greeting the player, use this script



Smile today, tomorrow could be worse

http://bestradiolarry.ro/fps/

"The best forum, game software, operating system or web platform, it's that software which can give you most of the features and speed, not just amazing graphics."
Bored of the Rings
GameGuru Master
19
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 18th Sep 2015 08:52
ha great, could you get the soldier to walk to you?
Professional Programmer: Languages- SAS, C++, SQL, PL-SQL, JavaScript, HTML, Darkbasic Pro, Purebasic, others
Hardware: Dell Precision 490; AMD Radeon HD 7570; LG TFT monitor (widescreen).
Interests: Drumming, Saxophone, Art, Theatre, Music.
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 18th Sep 2015 16:02 Edited at: 19th Sep 2015 07:51
Bored of the Rings wrote: "ha great, could you get the soldier to walk to you? "

Open the fpe file of "ai_soldier" and find there the animation.
Then you can adapted bellowed script (begin with line no 34) for making character to walk.
The part with "SetAnimationFrames(3110,3420)" in my example it's for conversation: "csi_unarmedconversation"...



I make one where the character tell to player hes mission:


And btw: Dear GG devs, WE REALY NEED ONE LIPS SYNC to have a real talking animation for the characters.
In the moment we are forced to use a masked face for the character, and the GG are just one mask color model for all character creation (please don't count the gas mask) !
Smile today, tomorrow could be worse

http://bestradiolarry.ro/fps/

"The best forum, game software, operating system or web platform, it's that software which can give you most of the features and speed, not just amazing graphics."
granada
Forum Support
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 18th Sep 2015 16:48
Realy cool .

Dave
PM
Bored of the Rings
GameGuru Master
19
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 18th Sep 2015 16:55
sorry, I didn't mean I wanted to I was just wondering if you could get him to walk for your video
Professional Programmer: Languages- SAS, C++, SQL, PL-SQL, JavaScript, HTML, Darkbasic Pro, Purebasic, others
Hardware: Dell Precision 490; AMD Radeon HD 7570; LG TFT monitor (widescreen).
Interests: Drumming, Saxophone, Art, Theatre, Music.
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 18th Sep 2015 20:30 Edited at: 18th Sep 2015 20:31
@larry how do you/we use PlaySound(e,8000,500) please?

@BotR

life\'s one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 19th Sep 2015 01:12 Edited at: 19th Sep 2015 01:15
Excellent work .....
I really need to make a separate page on GameGuru Files to preserve these scripts rather than them getting lost in the passage of time ...

Does anyone have an objection to this ?

[MOD EDIT] Moved to script board
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 19th Sep 2015 07:13 Edited at: 20th Sep 2015 15:15
smallg wrote: "larry how do you/we use PlaySound(e,8000,500) please?"

I used 2 additional sound folders at \audiobank\voices\ "female" and "male" .
Use the subfolder "oniddle" and "onInteract" ! --(You will find that sub-folders empty) I've put my sounds there.
In my video example, in the character option at "soundset ="male (click and go to: \audiobank\characters\male\oniddle (or oniteract)\yoursound.wav)
and at "sound1="click and go to: \audiobank\voices\ male\onIdle (or oniteract)\yoursound.wav -- select it, save and work
P.S. the "SetCharacterSoundSet(e)" must be in the function "_init" of script.
Also must have (copy) the new of your sounds at \audiobank\characters\male\ and female too.
Smile today, tomorrow could be worse

http://bestradiolarry.ro/fps/

"The best forum, game software, operating system or web platform, it's that software which can give you most of the features and speed, not just amazing graphics."
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 19th Sep 2015 07:57 Edited at: 19th Sep 2015 11:09
synchromesh wrote: "Excellent work .....
I really need to make a separate page on GameGuru Files to preserve these scripts rather than them getting lost in the passage of time ...
Does anyone have an objection to this ?"

Good idea, put there one "Scripts" section to find quick the best of free GG community scripts
Smile today, tomorrow could be worse

http://bestradiolarry.ro/fps/

"The best forum, game software, operating system or web platform, it's that software which can give you most of the features and speed, not just amazing graphics."
NAMECHANGED27
9
Years of Service
User Offline
Joined: 7th Sep 2015
Location:
Posted: 20th Sep 2015 05:15
Can i get a code snippet of one that is just sitting?
PM
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 20th Sep 2015 08:39 Edited at: 20th Sep 2015 15:08
Well, only @smallg can make good scripts (and of course, a few others too)
I am just trying to learn from smallg's scripts. Maybe do you like this one: "ai_sit4.lua"



Smile today, tomorrow could be worse

http://bestradiolarry.ro/fps/

"The best forum, game software, operating system or web platform, it's that software which can give you most of the features and speed, not just amazing graphics."
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 20th Sep 2015 16:59 Edited at: 20th Sep 2015 17:17
NAMECHANGED27 wrote: "Can i get a code snippet of one that is just sitting?"

OK, take that "just sitting" here


Smile today, tomorrow could be worse

http://bestradiolarry.ro/fps/

"The best forum, game software, operating system or web platform, it's that software which can give you most of the features and speed, not just amazing graphics."

Attachments

Login to view attachments
NAMECHANGED27
9
Years of Service
User Offline
Joined: 7th Sep 2015
Location:
Posted: 20th Sep 2015 17:17
Thanks Larry
PM
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 20th Sep 2015 17:27
You're welcome, don't forget to download the attached zip file too
Smile today, tomorrow could be worse

http://bestradiolarry.ro/fps/

"The best forum, game software, operating system or web platform, it's that software which can give you most of the features and speed, not just amazing graphics."
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 20th Sep 2015 19:12
nice job there larry
life\'s one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 21st Sep 2015 10:56
smallg wrote: "nice job there larry "

Many thanks
Do you solved the sounds with "PlaySound(e,8000,500)" ? see up here my answer for you
Smile today, tomorrow could be worse

http://bestradiolarry.ro/fps/

"The best forum, game software, operating system or web platform, it's that software which can give you most of the features and speed, not just amazing graphics."
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 22nd Sep 2015 12:54 Edited at: 22nd Sep 2015 13:26
And another short video where you realy can use the SciFi Console
Must combine 2 entities, like in the video example: the siren lights is used at "main = soundvolumelow2.lua" who give it airstrike alarm sound.
The sound alarm it's finishing when player press the "E" button (included in scificonsole2.lua) to stop the rocket launch.

The "soundvolumelow2.lua":


The "scificonsole2.lua" :


Smile today, tomorrow could be worse

http://bestradiolarry.ro/fps/

"The best forum, game software, operating system or web platform, it's that software which can give you most of the features and speed, not just amazing graphics."
devlin
10
Years of Service
User Offline
Joined: 12th Feb 2014
Location:
Posted: 25th Sep 2015 14:34
Thanks larry some great scripts
just looking at the video and the scripts help me understand more of how they work.
are these scripts free to use if credit given,
PM

Login to post a reply

Server time is: 2024-12-22 06:49:03
Your offset time is: 2024-12-22 06:49:03