2 registered members (AndrewAMD, NeoDumont),
761
guests, and 1
spider. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: What are you working on?
[Re: Ch40zzC0d3r]
#448591
02/12/15 00:43
02/12/15 00:43
|
Joined: Sep 2007
Posts: 101 Luxembourg
krial057
Member
|
Member
Joined: Sep 2007
Posts: 101
Luxembourg
|
I always loved to hack around on the limits of 3dgs. Today I decided to play around with litec again after a long time. After playing around a bit, I found a way to call struct methods and pass 'this' to it(without actually passing it...). Difficult to explain, here is an example
Test* test1 = newTest();
test1->GetX = Test_GetX;
test1->x = 40;
Test* test2 = newTest();
test2->GetX = Test_GetX;
test2->x = 80;
printf("Test1: %d | Test2: %d", test1->GetX(), test2->GetX());
Will print 40 and 80, even though i newer pass test1 or test2 as parameter to the GetX functions of the struct regards Alain EDIT: never mind, it's the same as in this post http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=420134. I used the following macros however to make it simpler:
ClassDefStart(Test)
var x;
var GetX(void* this);
ClassDefEnd(Test)
Last edited by krial057; 02/12/15 00:53.
|
|
|
Re: What are you working on?
[Re: krial057]
#448672
02/16/15 12:45
02/16/15 12:45
|
Joined: Mar 2012
Posts: 927 cyberspace
Wjbender
User
|
User
Joined: Mar 2012
Posts: 927
cyberspace
|
pistol ,not complete yet.. I just remembered why I suck at this , thought about texturing when its done ..oh crap
Last edited by Wjbender; 02/16/15 14:29.
Compulsive compiler
|
|
|
Re: What are you working on?
[Re: Wjbender]
#448675
02/16/15 15:24
02/16/15 15:24
|
Joined: Feb 2010
Posts: 886
Random
User
|
User
Joined: Feb 2010
Posts: 886
|
Looks great to me. If I would try that, you would probably mistake the gun for a hammer
|
|
|
Re: What are you working on?
[Re: 3run]
#448677
02/16/15 16:29
02/16/15 16:29
|
Joined: Mar 2012
Posts: 927 cyberspace
Wjbender
User
|
User
Joined: Mar 2012
Posts: 927
cyberspace
|
a hammer would be a cool weapon actually ! it needs iron sights ,ammo clip , ammo clip release button , hammer , the hand grip/bud area needs to be shaped like a palm and thumb can easily fit on it , it needs the brass ejection thing aswell ..
Last edited by Wjbender; 02/17/15 11:26.
Compulsive compiler
|
|
|
Re: What are you working on?
[Re: Reconnoiter]
#448703
02/17/15 15:55
02/17/15 15:55
|
Joined: Mar 2011
Posts: 3,150 Budapest
sivan
Expert
|
Expert
Joined: Mar 2011
Posts: 3,150
Budapest
|
I used different c-trace based placement onto terrain, or terrain+terrain models, or terrain+terrain models+buildings etc. what is post adjusted according to should it snap to tile xy or z or not. It is different for each entity category (4 kinds of foliage, 2 kinds of building, and terrain models).
Now I use Carlos3DGS's contribution to determine mouse pointer's view line intersecting the zero level plane if c-tracing fails. Some adjustment is still needed but works fine.
And thanks, yes, that temporary info text looks badly sometimes, but it is worthy to be kept, I will add a black rectangle or something behind it...
|
|
|
|