MRU Xmas Mod Competition 2007

Started by Cobra {sfx}, November 04, 2007, 12:50:17 AM

Previous topic - Next topic

Cobra {sfx}

The snow is spamming because Moh only allows so much, try having a few snow flakes then stop/start it again.

   

   In AA the tree will need its shader edited and added to your pk3 ( comment out lighting spherical i think) to stop the console spam.

   

   Try gluing the trigger to the tree and it will always follow it around :)
Sleep? What is that?

thingshappen

:D ty m8, I will edit this either tomorrow or tonight and ill let you know how it goes, I spawn the trigger in the same location as the tree as it resets when the player dies, I think its got something to do with MOHAA bieng confused over what local.player is as it is trying to link between 2 players maybe, just dont know exactly how to sort it. It works fine when I test it with just me on my own server but when another player joins and someone dies with the tree the trigger doesnt spawn again. I'll give the sticky trigger a go though.

   

   EDIT: Snow works fine, as does the tree... just sorting out the trigger, could be because I gave the local.player a targetname, so I have deleted the target name and edited everything with that target name to local.player
Do not click Show![spoiler]YOU CLICKED SHOW! Ah well, heres a link for you then: [yellow]Funny Half-Life 2 images worth a looky at...[/yellow][/spoiler]
effpeessage

Cobra {sfx}

spawn trigger_use "targetname" "treetrig" "origin" "$tree.origin"

   $treetrig setsize ( -10 -10 0 ) ( 10 10 70 )

   $treetrig glue $tree

   $treetrig waittill trigger

   

   blah blah blah attach blah  :P
Sleep? What is that?

thingshappen

Yeah that part is fine, ive just set the spawnpoint of the trigger as tree.origin so it is attached, its just this I am having problems with:

   

   http://mohaa.global-revenge.com/things/error.jpg" alt="" />

   

   $treeuse is the players targetname, ive just changed it to local.player instead.

   

   EDIT: Got it working with 2 players on the server before my laptop shut down on me, dont know about more but I will be testing that soon. Oh and as an off topic note you may want to change your favicon.ico to something, its got the seditio logo there atm :p
Do not click Show![spoiler]YOU CLICKED SHOW! Ah well, heres a link for you then: [yellow]Funny Half-Life 2 images worth a looky at...[/yellow][/spoiler]
effpeessage

bdbodger

I don't know why you want to but I am not sure you can change the players targetname . The game uses $player to refer to the player or players if it is multiplayer . If you have two players in mulitplayer they will be $player[1] and $player[2] the game automatically creates the targetname array .The first time you used $treeuse it was fine but then the second time you created an entity with the same targetname the game created the same kind of targetname array . At that point you have to use $treeuse[1] for the first player if not it won't be able to [yellow]cast 'array' to listener[/yellow] if you use $treeuse . What you should be doing is forget about the targetname and use local.player only .
[yellow]http://bodger-mods.com/default.aspx[/yellow][/b]
I do smoke. If this bothers anyone I suggest you take a look around at the world we live in....and shut the f*** up.
:)

bdbodger

On another note here is the first item from BDsanta's workshop

   

   
[yellow]http://bodger-mods.com/default.aspx[/yellow][/b]
I do smoke. If this bothers anyone I suggest you take a look around at the world we live in....and shut the f*** up.
:)

PKM

I do smoke. If this bothers anyone I suggest you take a look around at the world we live in....and shut the f*** up.
"PS: Yeah, we hate all PKM's works !-djfou"
*OFFICIAL*** {SFX} Double Clam Lapper

Cobra {sfx}

Sleep? What is that?

bdbodger

Thanks here is another one for you

   

   
[yellow]http://bodger-mods.com/default.aspx[/yellow][/b]
I do smoke. If this bothers anyone I suggest you take a look around at the world we live in....and shut the f*** up.
:)

Cobra {sfx}

Sleep? What is that?

judge817


thingshappen

bdbodger :
   What you should be doing is forget about the targetname and use local.player only .

   

   

   When I use local.player it works for a while until someone joins the server, then it gets confused and starts putitng the tree on random people. Btw those models are looking very good.
Do not click Show![spoiler]YOU CLICKED SHOW! Ah well, heres a link for you then: [yellow]Funny Half-Life 2 images worth a looky at...[/yellow][/spoiler]
effpeessage

PKM

I do smoke. If this bothers anyone I suggest you take a look around at the world we live in....and shut the f*** up.
"PS: Yeah, we hate all PKM's works !-djfou"
*OFFICIAL*** {SFX} Double Clam Lapper

bdbodger

thingshappen do you know the difference between a local variable and a level variable ? You can use a level variable instead or have the trigger thread a looping thread , for example

   

   
treetrig:
   local.trigger = spawn trigger_use
   local.trigger targetname treetrig
   local.trigger.origin = ( 896.00 -280.00 192.00 )
   local.trigger setsize ( -30 -30 0 ) ( 30 30 80 )
   
   while(1)
   {
      $treetrig waittill trigger
   
      local.player = parm.other
   
      if (local.player.dmteam == allies)
      {
         level.checkeral = 1
         setcvar "g_scoreboardpic" "captree/img/alliestree.tga"
      }
      else
      {
         level.checkerax = 1
         setcvar "g_scoreboardpic" "captree/img/axistree.tga"
      }
   
      thread scoreboard
      waitthread isplayeralive
   }
   
   end

   

   in that example it waits for the isplayeralive thread to end I assume that thread checks to see that the player is still alive and that it only end after the player dies . You probably need to pass the local.player variable to that thread example

   

   waitthread isplayeralive local.player

   

   and the thread maybe like this

   

   
isplayeralive local.guy:
   while(local.guy.health > 0)
   waitframe
   
   end
[yellow]http://bodger-mods.com/default.aspx[/yellow][/b]
I do smoke. If this bothers anyone I suggest you take a look around at the world we live in....and shut the f*** up.
:)

thingshappen

ah thank you so much m8, I was going to use a level variable but wasnt sure if it would work correctly. I'll give it a go now.

   

   EDIT: Works perfectly, no more random spawning of the tree :D, just need to remove the trigger every time it has to reset, crashes the server. Im using $treetrig remove, will this work?
Do not click Show![spoiler]YOU CLICKED SHOW! Ah well, heres a link for you then: [yellow]Funny Half-Life 2 images worth a looky at...[/yellow][/spoiler]
effpeessage