Product Chat / having some fun and found some beastly powers

Author
Message
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 1st Apr 2016 00:10
i saw someone asking about how to throw objects and while exploring i found this command: SetEntityRagdollForce(e,limb,x,y,z,v)
it can in a way allow you to throw objects but i decided it was more fun just to punch stuff out the way... enjoy
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Jerry Tremble
GameGuru TGC Backer
11
Years of Service
User Offline
Joined: 5th Nov 2012
Location: Sonoran Desert
Posted: 1st Apr 2016 00:18
LOL, awesome!
MAME Cab PC: i7 4770@3.4Ghz (passmark 9945), 12GB RAM, Win 10/64, GeForce GTX645 (passmark 1898); Shiny new laptop: i7 4800MQ@2.7Ghz (passmark 8586), 16GB RAM, Win 10/64, GeForce GTX870M (passmark 3598); Old laptop: i5@2.3Ghz, 8GB RAM, Win 7/64, Intel 3000 graphics
PM
MXS
Valued Member
15
Years of Service
User Offline
Joined: 10th Jan 2009
Location: Cybertron
Posted: 1st Apr 2016 00:58
@smallg how would I go about this by making the 3rd person use melee without the throwing?
more than what meets the eye.Welcome to SciFi Summer

Windows 7 home premium 64bit gtx770 sc acx 2gb gpu boost 2.0

smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 1st Apr 2016 01:08
I have the third person hidden and am using the new TransportToFrozen commands and a script to control the movement & animations from there.
(I don't like the default third person animations much and this way I get to control more of what happens)
It works OK but I couldn't make the mouse work for adjusting the y rotation so I had to use A and D for turning (maybe with a bit more time spent looking at it but I wasn't too worried)
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Pirate Myke
Forum Support
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 1st Apr 2016 01:50
That is pretty cool.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

Defy
17
Years of Service
User Offline
Joined: 20th Aug 2007
Location:
Posted: 1st Apr 2016 03:53
Awesome work ! just got the YT notify at work.
Question is that a edited AI script on the humans, or did you use one provided. I cant seen to get the AI to hold ground.

Keep up the greatness!!
Define R4, i7, 8g, R7 360
PM
rolfy
18
Years of Service
User Offline
Joined: 23rd Jun 2006
Location:
Posted: 1st Apr 2016 05:19
Excellent work.
Disturbing 13
3D Media Maker
19
Years of Service
User Offline
Joined: 12th Apr 2005
Location: Murder Capital of the World
Posted: 1st Apr 2016 05:49
great progress!

Gtox
3D Media Maker
10
Years of Service
User Offline
Joined: 5th Jun 2014
Location: South Africa
Posted: 1st Apr 2016 06:33
Good work, smallg!
Teabone
Forum Support
18
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Earth
Posted: 1st Apr 2016 07:40 Edited at: 1st Apr 2016 07:41
That is so incredibly awesome! I tried to do something similar in the past but had no idea how to make any force like that (failed attempt):




With that Dante beast you could make an entire game about city rampage
Twitter - Teabone3 | Youtube - Teabone3 | Twitch - Teabone3

i7 -2600 CPU @ 3.40GHz - Windows 7 - 8GB RAM - Nivida GeForce GT 740
HarryWever
3D Media Maker
14
Years of Service
User Offline
Joined: 14th Jan 2010
Location: below Sea level
Posted: 1st Apr 2016 08:45
thats really cool, nice one..
i can also see some nice games with creatures with the proper animations in 3person for this.


awesome

Harry
Harry
When nothing goes right, go left
PM
Bored of the Rings
GameGuru Master
19
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 1st Apr 2016 08:59
this is excellent, I was playing around with bond1's Dante in Dark Shader, great to see him in action
Professional Programmer: Languages- SAS (Statistical Analysis Software) , C++, SQL, PL-SQL, JavaScript, HTML, Darkbasic Pro (still love this language), Purebasic, others
Hardware: Dell Precision 490; AMD Radeon HD 7570; LG TFT monitor (widescreen). Wanting a new PC at some point.
Interests: Drumming, Saxophone, Art, Theatre, Music.
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 1st Apr 2016 09:15
If he was green it would be an awesome Incredible Hulk game ....
Great work Smallg
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 1st Apr 2016 09:43
The script is custom for the enemies as I wanted to show them flying in the air as a group and I wouldn't be able to do that if they're running all over the place

Running over zombies, everyone's favourite post apocalypse activity :p
To use the command SetEntityRagdollForce(e,limb,x,y,z,v) you need to set the direction of the hit in the x,y,z (this should be a low value as the higher the value the more force is applied, but 0,0,0 will cause everything to disappear), I used g_Entity[e]['x'] - g_PlayerPositionX etc (or maybe the other way) and a value of about 10 and 30 in y to make them go up depending on the attack used.
The limb I just put "head" but any that exist should work.
And finally the force to also adjust how powerful the reaction is just a number you feel works.
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Stab in the Dark software
GameGuru TGC Backer
21
Years of Service
User Offline
Joined: 12th Dec 2002
Location: Upstate New York USA
Posted: 1st Apr 2016 14:44
I always get a kick when I see the ragdoll physics code I developed in action.
The code I gave Lee also included the ability to shoot a ray at the model and get a hit on
the ragdoll limb and apply a force to just that ragdoll limb. Also Lee had suggested that he would
add a spike gun to FPSCR so I developed that as well. Just get Lee to expose this in LUA.
This is the video I made to show Lee how the 2 techniques worked, this should be possible
since this is the code he is using.

The coffee is lovely dark and deep,and I have code to write before I sleep.
Fendrik
13
Years of Service
User Offline
Joined: 2nd Jun 2011
Location:
Posted: 1st Apr 2016 14:50
Extremely cool ...

I'm going to have to play with that ...

@Stab: I think I could do the spike Gun stuff for hours ...
PM
LeeBamber
TGC Lead Developer
24
Years of Service
User Offline
Joined: 21st Jan 2000
Location: England
Posted: 1st Apr 2016 19:27
I think when the request for a Spike Gun comes through the community as a priority, I can add the extra ragdoll mechanism as a LUA command. Physics is so cool
PC SPECS: Windows 8.1 Pro 64-bit, Intel Core i7-5930K (PASSMARK:13645), NVIDIA Geforce GTX 980 GPU (PASSMARK:9762) , 32GB RAM

smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 1st Apr 2016 20:30
@Stab cool video and nice code
any form of raycast in GG would be a bonus to be honest.
@teabone
here is how it looks for running down those zombies that didn't read the highway code


for anyone interested the code looks like this.
Quote: "SetEntityHealth(e,0)
SetEntityRagdollForce(e,"head",(g_Entity[e]['x']-g_PlayerPosX),1,(g_Entity[e]['z']-g_PlayerPosZ),11500)"

you just need a condition like
Quote: "if GetPlayerDistance(e) < 100 then"

or
Quote: "if g_Entity[e]['limbhit'] ~= "" then"

to tell it when to trigger
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
HarryWever
3D Media Maker
14
Years of Service
User Offline
Joined: 14th Jan 2010
Location: below Sea level
Posted: 1st Apr 2016 20:44
LOL.. Carmageddon
Harry
When nothing goes right, go left
PM
Wolf
Forum Support
16
Years of Service
User Offline
Joined: 8th Nov 2007
Location: Luxemburg
Posted: 1st Apr 2016 20:58
Ha! Excellent! Paving the way to some superhero 3rd person game (or similar).
"When I contradict myself, I am telling the truth"
"absurdity has become necessity"
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 4th Apr 2016 22:09
Nice demo of the new command. I'm pleased with the new commands that are being sneaked in of late


SPECS: Q6600 CPU. Nvidia 660GTX. 8 Gig Memory. Win 7.
cybernescence
GameGuru Master
11
Years of Service
User Offline
Joined: 28th Jan 2013
Playing: Cogwheel Chronicles
Posted: 4th Apr 2016 22:34
Nice demo smallg

Talking of new commands, as a quick aside, did you guys notice that you can place text over the top of sprites now? Opens up better possibilities for HUDs and notes on letters etc. (PasteSprite & PasteSpritePosition)

Cheers.
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 5th Apr 2016 19:17
Oh is that how were supposed to do it? Seems an odd solution, surely a set text depth would have been easier to work with? I normally associate pasting sprites as a way to make and grab new graphics on the fly.


SPECS: Q6600 CPU. Nvidia 660GTX. 8 Gig Memory. Win 7.

Login to post a reply

Server time is: 2024-09-28 23:02:55
Your offset time is: 2024-09-28 23:02:55