How to make func_rotating crush.

Post anything to do with editing Nexuiz here. Whether its problems you've had, questions, or if you just want to show off your work.

Moderators: Nexuiz Moderators, Moderators

Wed Nov 08, 2006 2:11 pm

  • I have a func_rotating brush and sometimes (as planned) the player gets stuck between it and another piece of the map. The brush stops as if the torque of it's engine is not enough to overcome the player. I'd like this perticular brush to crush the player (kill) in this situation as tuts said it will. How do I do this?
    being
    Banned
     
    Posts: 31
    Joined: Fri Nov 03, 2006 9:12 pm

Wed Nov 08, 2006 6:19 pm

  • I've followed http://www.modsonline.com/Tutorials-read-60.html
    "# dmg: how much damage it will cause the player when blocking it. To set this type dmg in the "key" box and 1000 in the "value" box (this setting is based o­n if you want it to kill the player when touched) "

    And that didn't seem to work, the player was able to stop the fan anyway.
    being
    Banned
     
    Posts: 31
    Joined: Fri Nov 03, 2006 9:12 pm

Wed Nov 08, 2006 6:21 pm

Wed Nov 08, 2006 8:20 pm

  • nexuiz func_rotating dosent support .dmg or any other way of damaging the player when blocked.
    HOF:
    <Diablo> the nex is a "game modification"
    <Diablo> quake1 never had a weapon like that.
    <Vordreller> there was no need for anything over 4GB untill Vista came along
    <Samua>]Idea: Fix it? :D
    <Samua>Lies, that only applies to other people.
    User avatar
    tZork
    tZite Admin
     
    Posts: 1337
    Joined: Tue Feb 28, 2006 6:16 pm
    Location: Halfway to somwhere else

Wed Nov 08, 2006 10:13 pm

  • Ah, can this be fixed in the code (I guess esteel is doing that).
    It's a good feature that quake etc has. (not having it isn't a feature :P)
    /me is afraid the response will be "no, it's a feature not having it".
    There's a place in the code where the player is able to stop the rotating brush/mover if pinned between it and another thing, right there you could have:

    if (dmg != 0) {
    playerdam(dmg);
    }

    (continue with funciton)

    This way the player would be damaged correctly, also if you put a negative value you could make a crushing thing of life :P
    being
    Banned
     
    Posts: 31
    Joined: Fri Nov 03, 2006 9:12 pm

Fri Nov 10, 2006 9:26 am



Return to Nexuiz - Editing




Information
  • Who is online
  • Users browsing this forum: No registered users and 1 guest