Raised This Month: $ Target: $400
 0% 

[NS] Super welder


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
sawce
The null pointer exception error and virtual machine bug
Join Date: Oct 2004
Old 02-15-2007 , 22:39   Re: [NS] Super welder
Reply With Quote #5

Your code doesn't make much sense.

I've never tested changing damage on the welder, so this may only change the actual damage output and not the repair rate. The func_weldable opening rate most likely would not be altered also, as that is stored as a "seconds to weld to open" value, not a "welder damage required to open" value.

something like this:
Code:
new welderid=0;

while ((welderid=find_ent_by_class(welderid,"weapon_welder"))!=0)
{
  if (entity_get_edict(welderid,EV_ENT_owner)==id)
  {
    break;
  }
}

if (welderid==0)
{
  // could not find the welderid, get out of here
  return 0;
}
ns_set_weap_dmg(welderid,dmg);
sawce is offline
 



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 00:34.


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