lua .. /resetxp

Discussions about ET modding (sdk code, player/weapon modeling)

Moderators: Forum moderators, developers

User avatar
gotenks
Posts: 3465
Joined: Fri Nov 15, 2002 4:12 pm
Location: out of my mind
Contact:

Post by gotenks »

mcsteve you may have to check after each kill
My Website
Image
After a night of binge drinking:
=FF=im2good4u wrote:WTF wanst i on top ?
McSteve
Posts: 113
Joined: Tue Sep 12, 2006 7:41 am

Post by McSteve »

I didn't get that far Gotenks, I only tried preventing the initial upgrade after Dee said he couldn't get et_UpgradeSkill to work.

Anyway, I don't know if its wrong on the wiki or I'm missing something obvious, but et_UpgradeSkill( cno, skill ) doesn't seem to care what you return it, and -1 does not prevent the upgrade. However, the following does:

Code: Select all

function et_UpgradeSkill(cno, skill) 
	et.gentity_set( cno, "sess.skill", skill, 0 )
end
Its kind of cheating though, because its not intercepting or aborting the upgrade, its just always setting the skill to 0.

p.s. "etpro: et_UpgradeSkill - expected integer, got table" is being kicked up in the logs every time the function is called.
GhosT:McSteve
Ghostworks Gaming Community
Post Reply