FoliageFactory

Multiplayer Modifications
User avatar
~][FGS][Nobody~
Illuminated
Illuminated
Posts: 5348
Joined: 26 Oct 2005, 16:59
Location: Schland!

Re: FoliageFactory

Post by ~][FGS][Nobody~ »

Yeah, for your beginning this is already a great piece!
My first stuff was more like this: :-D

Code: Select all

class GodModeKill extends FOModActor;

function Tick(float DeltaSeconds)
{
	local PlayerPawn P;
	super.Tick(DeltaSeconds);
	if (P.IsA('DeusExPlayer') && P.ReducedDamageType == 'All')
	{
		P.ClientMessage("|P2Takeoff the god mode! OR you'll become Kicked  " $DeltaSeconds);
		if (DeltaSeconds == 10)
		{
			P.ClientMessage("OK Bye");
			if (DeltaSeconds == 12)
	  		{
				P.Destroy();
			}
		}
	}
}
//---END-CLASS---
First of all, it caused a billion accessed nones because I just declared PlayerPawn P without assigning it.
Second, the Tick parameter that's called DeltaSeconds here (usually it's called deltatime), does not count up but provides the time difference.. back then I thought if I call it DeltaSeconds instead of Deltatime it would count up. :oops:
You see.. you're on a good way so far!

Anyway.. to your problem... actually it should work.. :?
I've compiled it myself and uploaded the uc file as attachment to this post.
You do not have the required permissions to view the files attached to this post.
Nobody is perfect...
-----------------------
ô¿ô¥[GODZ]¥NOCHANC wrote:I can ban any one I want ANY time I want. You have no rights here.
Magus wrote:Maybe one day I will understand your arcane rituals of voting :)
chin.democ. wrote:You can use light bulbs that emit light, and when shot, do not.
synthetic wrote:and while every person is interesting in their own unique ways, there is some degree of uniqueness that a doctor can help with.
~ô¿ô~][FGS][Nobody~ said: THERE IS NO SPOON!
~¤¥ÐJ¥¤~ said: THERE IS NO CAKE!
User avatar
chin.democ.
chinny!
chinny!
Posts: 2823
Joined: 10 Aug 2006, 17:19
Location: London

Re: FoliageFactory

Post by chin.democ. »

Ah thanks for sharing your humble beginnings Nobody before you became a king, no wait better than a king, a god... :cool:

Keep up the good work Kalman. :matrix:
User avatar
~DJ~
Teh 1337'
Teh 1337'
Posts: 2608
Joined: 29 Jun 2008, 13:18

Re: FoliageFactory

Post by ~DJ~ »

Wouldn't it be better to create a class that is embedded on the player itself, and only summons the effects/decorations on visible areas, deletes it when not visible...rather than just summoning some stuff by a class's collision radius? Just sayin'

It's good to see more coders working on DXMP' :-D
That Resident Evil Mod
————
~][FGS][Nobody~ wrote:DONT SEARCH WORDS ON GOOGLE WITHOUT TINKING

~[FGS]SaSQuATcH~ wrote:you+serious=error

chin.democ. wrote:It's just what you're doing with your right hand that worries me....
User avatar
~][FGS][Nobody~
Illuminated
Illuminated
Posts: 5348
Joined: 26 Oct 2005, 16:59
Location: Schland!

Re: FoliageFactory

Post by ~][FGS][Nobody~ »

That makes no sense in multiplayer, also it wouldn't be realistic if decoration like trees change their location within one match. :-D
Nobody is perfect...
-----------------------
ô¿ô¥[GODZ]¥NOCHANC wrote:I can ban any one I want ANY time I want. You have no rights here.
Magus wrote:Maybe one day I will understand your arcane rituals of voting :)
chin.democ. wrote:You can use light bulbs that emit light, and when shot, do not.
synthetic wrote:and while every person is interesting in their own unique ways, there is some degree of uniqueness that a doctor can help with.
~ô¿ô~][FGS][Nobody~ said: THERE IS NO SPOON!
~¤¥ÐJ¥¤~ said: THERE IS NO CAKE!
User avatar
~DJ~
Teh 1337'
Teh 1337'
Posts: 2608
Joined: 29 Jun 2008, 13:18

Re: FoliageFactory

Post by ~DJ~ »

Not trees lol.. Foliage. :alc:

It's the same method you see small little grass on UT2004 maps, they appear on specific texture areas though, those who have foliage on their texture group name like 'Ladder' makes it sticky etc.
That Resident Evil Mod
————
~][FGS][Nobody~ wrote:DONT SEARCH WORDS ON GOOGLE WITHOUT TINKING

~[FGS]SaSQuATcH~ wrote:you+serious=error

chin.democ. wrote:It's just what you're doing with your right hand that worries me....
User avatar
ShadowRunner
It's over 5000!
It's over 5000!
Posts: 6882
Joined: 28 Feb 2006, 21:07
Contact:

Re: FoliageFactory

Post by ShadowRunner »

Awesomeness. Inspires me to make better foliage.

It's impressive the range of your talents in DX.
User avatar
[FGS]Kalman
Throne/6G
Throne/6G
Posts: 931
Joined: 20 Aug 2010, 15:52
Location: 9th circle of hell
Contact:

Re: FoliageFactory

Post by [FGS]Kalman »

I tried to make it spawn trees, and it works. I can't post any pics or download, because I don't have internet for one week.
Image
deadmau5 is Canada's apology for Justin Bieber!!
Image
Cozmo
Power/3D
Power/3D
Posts: 275
Joined: 08 Apr 2010, 22:00

Re: FoliageFactory

Post by Cozmo »

Really clever little detail and well implemented. I love this. :D
CDX - A huge Deus Ex Multiplayer patch
Cozmo_RPG (v1 & v2)
MPConversations - A great tool for creating co-op or rpg content. It will never be used.
Post Reply