Raised This Month: $ Target: $400
 0% 

Krotal chute mdl. replace with custom chute mdl.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
R@tch3t
Senior Member
Join Date: Sep 2005
Location: Fort Myers Fl.
Old 02-02-2008 , 09:03   Krotal chute mdl. replace with custom chute mdl.
Reply With Quote #1

I came across a post that was very close to what i had in mind and followed TehCasesar suggestion and added a new folder,(models/martyrdome/parachute.mdl) and it worked. However, the second I used (deploy) the parachute the server would crashed. I dont know what i did wrong or what I missed but I reintalled the plug as written with no problems. Is this the correct way to precache the new model so whoever joins the server will get the new model?

Below is the thread i followed and I enclosed the .sma I changed and the recompiled amxx. I also included the error log file along with the new model. Any help on what to is greatly appreciated, Ratch3t.

http://forums.alliedmods.net/showthr...recache+custom
Attached Files
File Type: rar error.rar (80.9 KB, 103 views)
__________________

Last edited by R@tch3t; 02-02-2008 at 09:05. Reason: spelling
R@tch3t is offline
thaCHEA
New Member
Join Date: Feb 2008
Old 02-25-2008 , 07:05   Re: Krotal chute mdl. replace with custom chute mdl.
Reply With Quote #2

your problem is really simple, you changed the precache path for the custom model, but you forgot to change the model path @ entity creation.

Code:
 
para_ent[id] = create_entity("info_target")
if(para_ent[id] > 0) {
entity_set_string(para_ent[id],EV_SZ_classname,"parachute")
entity_set_edict(para_ent[id], EV_ENT_aiment, id)
entity_set_edict(para_ent[id], EV_ENT_owner, id)
entity_set_int(para_ent[id], EV_INT_movetype, MOVETYPE_FOLLOW)
entity_set_model(para_ent[id], "models/parachute.mdl")
entity_set_int(para_ent[id], EV_INT_sequence, 0)
entity_set_int(para_ent[id], EV_INT_gaitsequence, 1)
entity_set_float(para_ent[id], EV_FL_frame, 0.0)
entity_set_float(para_ent[id], EV_FL_fuser1, 0.0)
you were precaching the custom model, while calling the default model.
change the path and when you deploy the chute it should load properly.
thaCHEA is offline
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 09:44.


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