AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help edit code to return to human form on death. (https://forums.alliedmods.net/showthread.php?t=55279)

toben 05-18-2007 10:26

Help edit code to return to human form on death.
 
1 Attachment(s)
This is from the chicken mod plugin. I am trying to force a return to human form every time someone dies. In the death code I put in "unchicken_user(0)". Below is all death code:


/* DEATH EVENT CODE */
public death_event(id)
{
update_menu()
new vid = read_data(2)
if(UserFlags[vid])
{
set_rendering(vid, kRenderFxNone, 0, 0, 0, kRenderTransAdd, 0)
new orig[3]
get_user_origin(vid, orig)
create_gibs(vid, orig, 5, 30, 30)
unchicken_user(0)
}
}

Attached is the sma file

YamiKaitou 05-18-2007 10:49

Re: Help edit code to return to human form on death.
 
Please attach the sma instead, that code is to hard to read like that.

scrtxxcaz 05-19-2007 03:23

Re: Help edit code to return to human form on death.
 
try:
Code:

unchicken_user(vid)

toben 05-22-2007 10:34

Re: Help edit code to return to human form on death.
 
2 Attachment(s)
testing new code

toben 05-29-2007 09:43

Re: Help edit code to return to human form on death.
 
It doesnt work. Any suggestions?

toben 08-05-2008 13:44

Re: Help edit code to return to human form on death.
 
OK Its a year later and I still can not figure out how to do this. Any help?

toben 08-05-2008 13:57

Re: Help edit code to return to human form on death.
 
1 Attachment(s)
lets try this:


All times are GMT -4. The time now is 10:39.

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