Raised This Month: $51 Target: $400
 12% 

CarMod v2.01


Post New Thread Reply   
 
Thread Tools Display Modes
Mr. Fax Sender
Junior Member
Join Date: Aug 2006
Old 08-30-2006 , 18:25   Re: CarMod v2.0
Reply With Quote #81

It works... but its very hard to hit someone.

Maybe theres another way? Is there a way that if you hit the front of the car youll die? And if you hit the sides or back you wont?

How about, keeping the default "if you touch the car you die", just make it so it only hurts you if the car is moving.
Mr. Fax Sender is offline
Lord_Destros
Veteran Member
Join Date: Jul 2004
Location: With stupid.
Old 08-31-2006 , 12:58   Re: CarMod v2.0
Reply With Quote #82

Quote:
Originally Posted by Mr. Fax Sender View Post
It works... but its very hard to hit someone.

Maybe theres another way? Is there a way that if you hit the front of the car youll die? And if you hit the sides or back you wont?

How about, keeping the default "if you touch the car you die", just make it so it only hurts you if the car is moving.
First sentence, told you, its more unrealistic since it actually takes effort to kill people 'accidently' (oxymoron I guess).

Second sentence, can't be done as far as I know.

Third Sentence, can be done flawlessly but not with the way this version of carmod is done here. This plugin uses set_user_maxspeed and get_user_maxspeed so it would be overly ineffecient to try and figure out how fast your going (It detects the max speed, not the speed you are currently going). This is possible if you set the velocity for the person but I'm not that great with velocity.

The other way the third sentence can be done is by checking if the user executes +forward, +backward, +moveleft, or +moveright (hmmm, I think those are the strafe commands).
__________________
Quote:
Originally Posted by Twilight Suzuka
Don't worry m'lord. The turtles day will come.
Lord_Destros is offline
Send a message via AIM to Lord_Destros
Mr. Fax Sender
Junior Member
Join Date: Aug 2006
Old 08-31-2006 , 13:46   Re: CarMod v2.0
Reply With Quote #83

Quote:
The other way the third sentence can be done is by checking if the user executes +forward, +backward, +moveleft, or +moveright (hmmm, I think those are the strafe commands).
I like this idea. Could you help me throw it together? I still have no idea most of this works.
Mr. Fax Sender is offline
JCobra
Senior Member
Join Date: Mar 2006
Location: Canada
Old 08-31-2006 , 15:41   Re: CarMod v2.0
Reply With Quote #84

Couldn't you just use a random number function, save that variable, and use it as the defined crash damage?
__________________
User has abandoned this account.
JCobra is offline
Send a message via AIM to JCobra
Lord_Destros
Veteran Member
Join Date: Jul 2004
Location: With stupid.
Old 08-31-2006 , 15:51   Re: CarMod v2.0
Reply With Quote #85

Quote:
Originally Posted by JCobra View Post
Couldn't you just use a random number function, save that variable, and use it as the defined crash damage?
Yes but it still hurts you if the car isn't moving

does this work?
Attached Files
File Type: sma Get Plugin or Get Source (carmod.sma - 602 views - 19.9 KB)
__________________
Quote:
Originally Posted by Twilight Suzuka
Don't worry m'lord. The turtles day will come.
Lord_Destros is offline
Send a message via AIM to Lord_Destros
Mr. Fax Sender
Junior Member
Join Date: Aug 2006
Old 08-31-2006 , 16:50   Re: CarMod v2.0
Reply With Quote #86

No worky :<

Now, im not no expert on AMX, but from what i saw, the code you added was after the health thing and wasnt integrated in it at all.

Last edited by Mr. Fax Sender; 08-31-2006 at 18:51.
Mr. Fax Sender is offline
Lord_Destros
Veteran Member
Join Date: Jul 2004
Location: With stupid.
Old 08-31-2006 , 19:07   Re: CarMod v2.0
Reply With Quote #87

Code:
   if(incar[id] && incar[entid]) {
      new hp = get_user_health(entid)
      new hp2 = get_user_health(id)
      set_user_health(entid,(hp - 75))
      set_user_health(id,(hp2 - 75))
//    set_user_maxspeed(id,oldspeed[id])
//    entity_set_float(id,EV_FL_friction,oldfric[id])
//    car_drop(id)
      set_user_info(id,"model",oldmodel[id])
      incar[id] = 0
      emit_sound(id, CHAN_ITEM, "ambience/rd_warehouse.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
      //drop_car(id)
      //drop_car(entid)
      return PLUGIN_HANDLED
   }
I didn't bother adding in this method above since I figured if both people are in a car, ONE of them has to be moving in order to hit the other.

Instead I added it below where it checks if one person is in the car and the other isn't. Also, which part of it wasn't working? Did it always crash into the person or did it never crash into the person?
__________________
Quote:
Originally Posted by Twilight Suzuka
Don't worry m'lord. The turtles day will come.
Lord_Destros is offline
Send a message via AIM to Lord_Destros
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 08-31-2006 , 21:50   Re: CarMod v2.0
Reply With Quote #88

Help me with this installing on my server?

FTP not workin..\
help.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Mr. Fax Sender
Junior Member
Join Date: Aug 2006
Old 08-31-2006 , 21:56   Re: CarMod v2.0
Reply With Quote #89

It always crashed, moving or not.
Mr. Fax Sender is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 08-31-2006 , 22:45   Re: CarMod v2.0
Reply With Quote #90

My FTP?
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:46.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode